/* ==================== Переменные ================================ */
:root {
  --color-dark: oklch(0.25 0.0058 271.18);
  --color-gray: oklch(0.3 0.0055 301.2);
  --color-blue: oklch(0.48 0.1394 258.07);
  --color-green: oklch(0.73 0.1111 182.32);
  --color-emerald: oklch(0.8799 0.21 156.86);
  --color-light: oklch(1 0 0);

  --font-main: 'Montserrat-Light', sans-serif;
  --font-size-base: clamp(1rem, 0.955rem + 0.23vw, 1.125rem);

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --max-width: min(66rem, 100% - 1rem);
}

@font-face {
  font-family: 'Montserrat-Light';
  src: url('../fonts/Montserrat-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==================== Сброс и базовые стили ==================== */
*,
::before,
::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html,
body {
  color-scheme: dark;
/*  height: 100%;*/
  line-height: 1.5;
  font-size: var(--font-size-base);
  font-weight: 300;
  background-color: var(--color-dark);
  color: var(--color-light);
  font-family: var(--font-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
/*   scrollbar-width: none;*/
  -ms-overflow-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
  text-wrap: balance;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

ul, ol, li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: none;
  height: 1px;
  background-color: #4d4e51;
}

p {
  font-size: 0.8rem;
  text-align: justify;
  margin-bottom: 20px;
  padding: 10px 20px;
}

strong {
  font-weight: 500;
}

.line-container {
  position: relative;
  display: inline-block;
  width: fit-content;
}

.full-width-bg {
  position: relative;
  width: 100%;
  background: url("../img/line_lg.svg") center / 100% auto no-repeat;
  background-size: 100vw auto;
  min-height: 120px;
  background-position: center;
}

.logo-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 40px 0;
  /* padding-left: 5vw; */
}

.logo-line {
  max-width: 100px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .logo-overlay {
    justify-content: flex-start;
    padding-left: 20px;
  }
  
  .logo-line {
    max-width: 80px;
  }
}

/* ==================== Общие стили ==================== */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 1 auto;
}

.section__container {
  position: relative;
  width: var(--max-width);
  margin: 0 auto;
}

#home,
#about,
#contacts {
  scroll-margin-top: 70px;
}

#services {
  scroll-margin-top: 250px;
}

#support {
  scroll-margin-top: 90px;
}

.section__line {
  margin-top: 50px;
}

.divider {
  margin: var(--spacing-xl) 0;
  width: 100%;
  border: none;
  height: 2px;
  background-color: #4d4e51;
}

.border {
  border-radius: 10px;
}

.green {
  color: var(--color-green);
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-dark);
}

.header__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--max-width);
  margin-inline: auto;
  padding: 15px 40px 0 40px;
  min-height: 80px;
  border-bottom: 1px solid var(--color-green);
  font-size: 1rem;
}

.header__contacts {
  order: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__contacts-list,
.header__menu-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__contacts-list a,
.header__menu-list a {
  display: flex;
  align-items: center;
  gap: 0 var(--spacing-sm);
  white-space: nowrap;
  font-weight: 300;
  transition: color 0.3s ease;
}

.header__contacts-list a:hover,
.header__menu-list a:hover {
  color: var(--color-green);
}

.header__inner {
  order: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-light);
}

.logo img {
  display: none;
  width: auto;
  height: 30px;
}

.header__mobile-controls {
  display: none;
  align-items: center;
  gap: 15px;
}

.header__mobile-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.mobile-icon:hover {
  color: var(--color-green);
}

.burger {
  display: none;
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.burger span,
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-light);
  transition: all 0.3s ease;
}

.burger::before { top: 0; }
.burger::after { bottom: 0; }
.burger span { top: 9px; }

.burger.active::before {
  transform: rotate(-45deg);
  top: 9px;
}
.burger.active::after {
  transform: rotate(45deg);
  bottom: 9px;
}
.burger.active span {
  transform: scale(0);
}

.header__menu {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
}

.header__menu-list {
  display: flex;
  margin: 0;
  padding: 0;
  gap: var(--spacing-sm);
}

/* Основной стиль ссылки меню */
.header__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-light);
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Hover */
.header__link:hover {
  color: var(--color-green);
}

/* Активный пункт меню */
.header__link.active {
  color: var(--color-green);
  font-weight: 300;
}

/* ==================== MOBILE: 768px и ниже ==================== */
@media (max-width: 768px) {
  .header__mobile-controls {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .header__body {
    min-height: 60px;
    padding: 10px 20px 0 20px;
    position: relative;
  }

  .burger {
    display: block;
    position: relative;
    z-index: 1001;
  }

  .logo img {
    display: block;
    height: 30px;
  }

  .header__menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background-color: var(--color-dark);
    color: #fff;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
    align-items: flex-start;
    gap: var(--spacing-lg);
    overflow-y: auto;
  }

  .header__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: var(--spacing-lg);
    font-size: 1.2rem;
  }

  .header__menu-list li {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }

  /* Активный пункт в мобильном меню */
  .header__link.active {
    color: var(--color-green);
    font-weight: 300;
  }

  .header__contacts {
    justify-content: center;
    padding-bottom: var(--spacing-xs);
    display: none;
  }

  .header__contacts-list {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  .header__inner {
    justify-content: space-between;
  }

  .logo {
    flex: 1;
  }
}

/* ==================== MOBILE: 480px и ниже ==================== */
@media (max-width: 480px) {
  .header__menu {
    padding: 70px 15px 15px 15px;
  }

  .header__menu-list {
    font-size: 1.1rem;
    gap: var(--spacing-sm);
  }

  .header__contacts-list {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo img {
    height: 25px;
  }

  .mobile-icon span {
    font-size: 23px;
  }

  .header__mobile-controls,
  .header__mobile-icons {
    gap: 12px;
  }
}

/* ==================== Hero / Parallax ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: var(--spacing-xxl) var(--spacing-sm) var(--spacing-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-section--parallax,
.hero-section-data {
  background-image: url('../img/main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-height: 100%;
}

.hero-section-data {
  background-image: url('../img/data-bg.jpg');
}

.hero {
  width: 100%;
  max-width: 1200px;
  z-index: 2;
}

.hero ul {
  display: none;
}

.hero__wrapper {
  display: block;
  margin: 50px auto;
  max-width: 1400px;
  position: relative;
}

.title__wrapper {
  text-align: right;
  display: inline-block;
}

.hero__title {
  font-size: clamp(1rem, 1rem + 2vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  text-align: right;
  display: block;
  z-index: 5;
}

.cod-title {
  margin-bottom: -100px;
}

.hero__content {
  position: relative;
  width: 100%;
  height: auto;
  text-align: left;
  margin: 50px;
}

.hero__content-cod {
  position: relative;
  width: 100%;
  height: auto;
  text-align: left;
  margin: 0 50px;
}

.hero__content img {
  margin-top: -100px;
  margin-right: 270px;
}

.cod-hero img {
  margin-top: -120px;
}

.parallax__info {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 100%;
  height: auto;
  z-index: 6;
  transition: transform 0.1s ease-out;
}

.parallax__info--text {
  bottom: -200px;
  z-index: 4;
}

.hero-image-wrapper {
  position: relative;
  margin-bottom: var(--spacing-lg);
  width: 100%;
  overflow: hidden;
}

/* Общее для изображений */
.hero-image-wrapper img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  object-fit: cover;
}

/* Стили заголовка — общие, но с разными позициями */
.overlay-title {
  position: absolute;
  transform: translateY(-50%);
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  font-weight: 300;
  color: var(--color-light);
  pointer-events: none;
  z-index: 2;
  text-align: left;
  line-height: 1.1;
  padding: 0.4rem 1rem;
}

/* Специфические позиции */
.asutp .overlay-title {
  top: 65%;
  left: 1%;
}

.electronics .overlay-title {
  top: 50%;                  
  left: 1%;
}

.disp .overlay-title {
  top: 62%;
  left: 1%;
  /*font-size: clamp(0.6rem, 2.2vw, 1.2rem);*/
}

.warranty .overlay-title {
  top: 54%;
  left: 1%;
  /*font-size: clamp(0.6rem, 2.2vw, 1.2rem);*/
}
.mobile {
  display: none;
}

@media (max-width: 768px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: inline;
  }
}
/* Мобильная адаптация */
@media (max-width: 430px) {
  .overlay-title {
    font-size: clamp(1rem, 4.7vw, 2.1rem);
    left: 5%;
    padding: 0.3rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .overlay-title {
    font-size: clamp(0.5rem, 5vw, 1rem);
    left: 6%;
  }
}

/* MOBILE: 768px и ниже */
@media (max-width: 768px) {
  .hero__wrapper {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-section {
    padding: 0;
  }

  .hero__content {
    margin: 150px 0 0 0;
    padding: 0 20px;
  }

  .hero__content > * {
    text-align: left;
    margin-left: 0;
  }

  .hero__content img {
    display: none;
  }

  .hero__title {
    display: block;
    text-align: left;
    font-size: clamp(2rem, 1.5rem + 2vw, 4rem);
    margin-bottom: 20px;
    margin-left: 0;
    width: 100%;
  }

  .hero ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .hero ul li {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.8rem, 1rem + 1vw, 1rem);
    white-space: normal;
    margin-left: 0;
  }

  .hero ul li:not(:last-child):after {
    content: " |";
    margin-left: 8px;
    color: var(--color-light);
    font-weight: bold;
  }

  .hero ul:empty:after {
    display: none;
  }

  ul.hero {
    margin-bottom: 20px;
  }

  ul.hero:last-of-type {
    margin-bottom: 0;
  }
}

/* MOBILE: 480px и ниже */
@media (max-width: 480px) {
  .hero ul {
    flex-direction: column;
    gap: 8px;
  }
}

.hero__wrapper:first-child {
  justify-content: center;
}

.hero__wrapper:last-child {
  height: 400px;
  margin-top: auto;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image-wrapper {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 768px) {
  .overlay-title {
    font-size: clamp(0.7rem, 2.9vw, 0.9rem);
    padding: 0.3rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .overlay-title {
    font-size: clamp(0.5rem, 5vw, 1rem);
    left: 6%;
  }
}

/* ==================== Sections ==================== */
.subtitle {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-light);
  margin: 0;
  text-align: center;
  padding-left: 20px;
}

.columns {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.columns > div {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

.columns > div img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


@media (max-width: 768px) {
  .columns > div {
    flex: 1 1 100%;
    min-width: auto;
  }
}

.img__container {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  height: 300px;
  align-items: center;
}

.img__container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  overflow: hidden;
}

.col:nth-child(2) {
  flex: 2;
}

.column {
  flex: 0 0 calc(50% - var(--spacing-md));
  max-width: calc(50% - var(--spacing-md));
}

.column li {
  text-align: left;
  font-size: 0.7rem;
}

.column li span {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.electro__list {
  padding: 0 10px;
  margin: 0;
  text-align: left;
}

.list {
  font-size: 0.7rem;
  display: inline-block;
  padding-left: 23px;
}

@media (max-width: 768px) {
  .list {
    padding-left: 10px;
  }
} 

.electro__list li {
  margin-bottom: 8px;
}

.electro__list li span {
  font-size: 0.7rem;
}

.column p {
  margin-top: var(--spacing-xs);
  font-size: 0.95rem;
  text-align: left;
}

.column--right {
  flex: 1 1 100%;
  max-width: 1400px;
  text-align: left;
}

.column--right p {
  margin-top: var(--spacing-xs);
  line-height: 1.5;
  margin-bottom: 20px;
}

.header-group {
  display: flex;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xs);
  align-items: flex-start;
}

.header-group h2.subtitle {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  flex-shrink: 0;
}

.header-group p {
  margin: 0;
  font-size: 0.8rem;
}

.arrow-right {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #4d4e51;
  margin: var(--spacing-md) 0;
}

.arrow-right::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-top: 4px solid #4d4e51;
  border-right: 4px solid #4d4e51;
  transform: rotate(45deg);
}

.service__menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--spacing-xs);
  background-color: #4d4e51;
  border-radius: 5px;
  width: 100%;
  margin: var(--spacing-md) 0;
}

.service__menu li {
  flex: 0 0 auto;
  color: var(--color-light);
  font-weight: 500;
}

/* MOBILE: 768px и ниже */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .column {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .img__container {
    flex-direction: column;
    height: 100%;
  }

  .header-group {
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
}

/* ==================== Disp (Grid of 5) ==================== */
.disp .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.disp .columns > div {
  margin: 0;
  padding: 0;
  flex: 1 1 calc(100% / 5);
  max-width: calc(100% / 5);
  box-sizing: border-box;
}

.disp .columns img {
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .disp .columns > div {
    flex: 1 1 calc(100% / 2);
    max-width: calc(100% / 2);
  }
}

@media (max-width: 480px) {
  .disp .columns > div {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==================== Slider (Our Clients) ==================== */
#ourclients {
  display: block;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  padding-bottom: 30px;
}

#ourclients .clients-wrap {
  display: block;
  width: 95%;
  margin: 0 auto;
  overflow: hidden;
}

#ourclients .clients-wrap ul {
  display: block;
  list-style: none;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

#ourclients .clients-wrap ul li {
  display: block;
  float: left;
  position: relative;
  width: 220px;
  height: 100px;
  line-height: 100px;
  text-align: center;
}

#ourclients .clients-wrap ul li img {
  vertical-align: middle;
  max-width: 100%;
  width: 150px;
  max-height: 100%;
  transition: 0 linear left;
}

#ourclients h3 {
  border-bottom: 2px solid #3399ff;
  width: 150px;
  padding: 10px;
}

.stack__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 10px 0;
  text-align: center;
}

/* ==================== Contacts ==================== */
.contacts__title {
  font-size: 2rem;
  font-weight: 500;
  text-align: left;
  margin-bottom: 20px;
}

.contacts__subtitle {
  font-size: 1.2rem;
  color: var(--color-green);
  display: block;
}

.two-column-list {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  margin: 0 0 20px 0;
}

.two-column-list li {
  font-size: 1rem;
  text-align: left;
}

.two-column-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.map-container {
  width: 100%;
  overflow: hidden;
  text-align: right;
}

.contacts__list {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.contacts__list--main {
  gap: 30px;
  margin-bottom: 10px;
}

.contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: var(--spacing-md);
  width: 100%;
}

.contacts__title {
  margin: 0;
  flex-shrink: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.mobile-social-icons {
  display: none;
  flex-shrink: 0;
}

/* MOBILE: 768px и ниже */
@media (max-width: 768px) {
  .mobile-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
  }

.mobile-social-icons img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  vertical-align: middle;
  margin: 0;
}

    .two-column-list {
    display: block;
    padding: 0;
    margin: 0;
  }

  .two-column-list li {
    display: block;
    margin-bottom: 12px;
    padding: 0;
  }

  .two-column-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
  }


  .two-column-list li span.icon-mail,
  .two-column-list li span.icon-phone {
    flex-shrink: 0;
  }

  .footer__contacts-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
  }

  .footer__contacts-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* DESKTOP: 769px и выше */
@media (min-width: 769px) {
  .mobile-social-icons {
    display: none;
  }

  .contacts-header {
    flex-wrap: nowrap;
  }
}

/* ==================== Footer ==================== */
.footer__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-green);
}

.footer__menu-list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer__contacts-list {
  display: none;
}

@media (max-width: 768px) {
  .footer__contacts-list {
    display: flex;
    align-items: center;
  }
}

.footer__copyright {
  display: block;
  text-align: center;
  padding: 10px 0;
}

/* Контакты — адрес (объединяем всё здесь) */
.contacts__address {
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
}

.contacts__address li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
}

.contacts__address .icon-location {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contacts__address .address-long {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  word-break: break-word; 
  hyphens: auto;
  overflow-wrap: anywhere;
}

.address-long::before,
.address-long::after {
  content: none;
}

@media (max-width: 480px) {
	p {
		text-align: center;
	}
}
