/* CSS ПЕРЕМЕННЫЕ ДЛЯ ТЕМНОЙ ТЕМЫ */

:root {
  /* Светлая тема (по умолчанию) */
  --primary-color: #f07c00;
  --primary-hover: #e57300;
  --primary-light: #ffab52;
  
  --text-primary: #514f4f;
  --text-secondary: #929292;
  --text-white: #ffffff;
  --text-black: #000000;
  --text-orange: #f07c00;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f0f0;
  --bg-orange: #f07c00;
  --bg-dark: #121212;
  --bg-gray: #514f4f;
  --bg-light-gray: #f5f5f5;
  --bg-scrollbar: rgba(56, 56, 56, 0.8);
  
  --border-color: #e2e2e2;
  --border-dark: #333333;
  --border-light: #d6d6d6;
  --border-orange: #f07c00;
  
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --shadow-orange: rgba(240, 124, 0, 0.15);
  
  --error-color: #ff6b6b;
  --success-color: #4caf50;
  
  /* Дополнительные цвета */
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-shadow: rgba(0, 0, 0, 0.1);
  --burger-color: #333;
  --menu-overlay: rgba(56, 56, 56, 0.8);
  --table-border: #c0c0c0;
  --checkbox-border: #c0c0c0;
  --autocomplete-bg: #ffb875;
  --production-feature: #2c3e50;
  --production-bg: #f07c00;
  --error-blue: #4dabf7;
  --error-blue-hover: #228be6;
  --form-placeholder-bg: #f5f5f5;
  --footer-gradient: #F07C00;
}

/* Темная тема */
[data-theme="dark"] {
  --primary-color: #ff9800;
  --primary-hover: #ffb74d;
  --primary-light: #ffcc80;
  
  --text-primary: #e0e0e0;
  --text-secondary: #ededed;
  --text-white: #ffffff;
  --text-black: #f5f5f5;
  --text-orange: #ff9800;
  
  --bg-primary: #48494a;
  --bg-secondary: #464747;
  --bg-tertiary: #2d2d2d;
  --bg-orange: #3e3f40;
  --bg-dark: #000000;
  --bg-gray: rgba(56, 56, 56, 0.8);
  --bg-light-gray: #2d2d2d;
  --bg-scrollbar: rgba(255, 255, 255, 0.8);
  
  --border-color: #e2e2e2;
  --border-dark: #444444;
  --border-light: #444444;
  --border-orange: #ff9800;
  
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-orange: rgba(255, 152, 0, 0.2);
  
  --error-color: #ff5252;
  --success-color: #66bb6a;
  
  /* Дополнительные цвета для темной темы */
  --header-bg: rgba(18, 18, 18, 0.8);
  --header-shadow: rgba(0, 0, 0, 0.3);
  --burger-color: #e0e0e0;
  --menu-overlay: rgba(56, 56, 56, 0.8);
  --table-border: #555555;
  --checkbox-border: #666666;
  --autocomplete-bg: #ff9800;
  --production-feature: #e0e0e0;
  --production-bg: #333333;
  --error-blue: #64b5f6;
  --error-blue-hover: #42a5f5;
  --form-placeholder-bg: #383838;
  --footer-gradient: #ff9800;
}

/* Автоматическое определение темы системы */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #ff9800;
    --primary-hover: #ffb74d;
    --primary-light: #ffcc80;
    
    --text-primary: #e0e0e0;
    --text-secondary: #ededed;
    --text-white: #ffffff;
    --text-black: #f5f5f5;
    --text-orange: #ff9800;
    
    --bg-primary: #48494a;
    --bg-secondary: #464747;
    --bg-tertiary: #2d2d2d;
    --bg-orange: #3e3f40;
    --bg-dark: #000000;
    --bg-gray: rgba(56, 56, 56, 0.8);
    --bg-light-gray: #2d2d2d;
    --bg-scrollbar: rgba(255, 255, 255, 0.8);
    
    --border-color: #e2e2e2;
    --border-dark: #444444;
    --border-light: #444444;
    --border-orange: #ff9800;
    
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-orange: rgba(255, 152, 0, 0.2);
    
    --error-color: #ff5252;
    --success-color: #66bb6a;
    
    --header-bg: rgba(48, 48, 48, 0.8);
    --header-shadow: rgba(0, 0, 0, 0.3);
    --burger-color: #e0e0e0;
    --menu-overlay: rgba(56, 56, 56, 0.8);
    --table-border: #555555;
    --checkbox-border: #666666;
    --autocomplete-bg: #ff9800;
    --production-feature: #e0e0e0;
    --production-bg: #333333;
    --error-blue: #64b5f6;
    --error-blue-hover: #42a5f5;
    --form-placeholder-bg: #383838;
    --footer-gradient: #ff9800;
  }
}

/* СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ */

body {
    font-family: "Open Sans", sans-serif;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
    position: relative;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-scrollbar) var(--bg-secondary);
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
} 

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

button {
    outline: none;
    font-family: inherit;
}

.container { 
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

.bx-wrapper {
    background: none !important; 
    border: 5px solid transparent !important;
}

/* СТИЛИ И АДАПТИВНЫЕ СТИЛИ ДЛЯ ПОВТОРЯЮЩИХСЯ MARGIN-TOP */

.mt-10 {
    margin-top: 10px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

@media (max-width: 620px) {
    
    .mt-50 {
        margin-top: 35px;
    }
    
    .mt-30 {
        margin-top: 20px;
    }
}

/* СТИЛИ И АДАПТИВНЫЕ СТИЛИ ДЛЯ ЗАГОЛОВКА H2 */

.title {
    font-weight: 700;
    font-size: 30px;
    color: var(--text-primary);
    position: relative;
    padding: 10px 0 10px 25px;
}

.title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary-color);
}

@media (max-width: 620px) {
    
    .title {
        font-size: 20px;
        padding: 5px 0 5px 15px;
    }
}

.subtitle {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0 5px 20px;
}

.subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary-color);
}

@media (max-width: 620px) {
    
    .subtitle {
        font-size: 16px;
    }
}

/* СТИЛИ ДЛЯ ХЛЕБНЫХ КРОШЕК (BREADCRUMBS) */

.breadcrumbs li {
    display: inline-block;
    margin-left: 12px;
}

.breadcrumbs li a {
    font-size: 12px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.breadcrumbs li a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.breadcrumbs li:not(:first-child):before {
    content: '>';
    z-index: 10;
    position: relative;
    display: block;
    width: 0;
    height: 0;
    right: 12px;
    top: 2px;
    font-weight: 500;
    color: var(--primary-color);
}

.breadcrumbs-category ul {
    margin-left: 0 !important;
}

.breadcrumbs-category li:before {
    top: 15px;
}

/* СТИЛИ ДЛЯ БЛОКА HEADER */

#industry_solutions,
#news,
#contacts {
    scroll-margin-top: 8rem;
}

.header {
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    box-shadow: 0 5px 30px 0 var(--header-shadow);
    background: var(--header-bg);
    z-index: 100;
    position: sticky;
    padding: 0 10px;
    backdrop-filter: blur(4px);
    animation: fadeInDown .5s ease-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    20% {
        opacity: 0;
        transform: translateY(-25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header__row {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.header__nav-list {
    display: flex;
    gap: 45px;
}

.header__btn {
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 7px 36px;
    background: var(--bg-primary);
    transition: all .3s ease-out;
    width: fit-content;
}

.header__btn:hover {
    color: var(--text-white);
    background: var(--primary-color);
}

.header__nav-link {
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    text-align: center;
    transition: all .3s ease-out;
}

.header__nav-link:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.header__phone {
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    color: var(--primary-color);
    display: block;
    transition: all .3s ease-out;
}

.header__email {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    text-align: right;
    transition: all .3s ease-out;
    display: block;
}

.header__email:hover {
    cursor: pointer;
    color: var(--primary-color);
}

.header__phone:hover {
    cursor: pointer;
    color: var(--text-primary);
}

.header__nav-mobile {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 200;
}

.header__burger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--burger-color);
    border-radius: 2px;
    transition: .3s;
}

.header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header__logo--dark {
    display: none;
}

.header__logo--light {
    display: block;
}

/* При светлой теме показываем темный логотип */
[data-theme="dark"] .header__logo--light {
    display: none;
}

[data-theme="dark"] .header__logo--dark {
    display: block;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА HEADER */

@media (max-width: 1150px) {
    
    .header__nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: 2px 0 10px var(--shadow-dark);
        transition: left .3s;
        padding: 20px;
        overflow-y: auto;
    }

    .header__nav.active {
        left: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .header__burger {
        display: flex;
    }

    .header__nav-mobile {
        display: flex;
        margin-top: 0;
        gap: 5px;
    }

    .header__btn-wrapper,
    .header__contacts {
        display: none;
    }

    .header__email {
        font-size: 13px;
        text-align: left;
    }
}

/* СТИЛИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ ТЕМЫ */

.header__theme-toggle {
    margin-right: 15px;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.header__theme-toggle--mobile {
    margin-top: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(240, 124, 0, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle__icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    line-height: 1;
}

.theme-toggle__img {
    width: 100%;
}

[data-theme="light"] .theme-toggle__icon--sun {
    display: none;
    transform: translate(-50%, -50%) rotate(90deg);
}

[data-theme="light"] .theme-toggle__icon--moon {
    display: block;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: block;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Анимация переключения */

@keyframes themeToggleIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes themeToggleOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(180deg) scale(0.5);
    }
}

.theme-toggle.animating .theme-toggle__icon--sun {
    animation: themeToggleIn 0.6s ease forwards;
}

.theme-toggle.animating .theme-toggle__icon--moon {
    animation: themeToggleIn 0.6s ease forwards;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ ТЕМНОЙ ТЕМЫ */

@media (max-width: 1150px) {
    
    .header__theme-toggle:not(.header__theme-toggle--mobile) {
        display: none;
    }
    
    .header__nav-mobile .header__theme-toggle {
        display: flex;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .header__theme-toggle--mobile {
        justify-content: flex-start;
    }
}

@media (min-width: 1151px) {
    .header__nav-mobile .header__theme-toggle {
        display: none;
    }
}

/* СТИЛИ ДЛЯ БЛОКА MENU (В HEADER ССЫЛКА КАТАЛОГ) */

.menu {
    border-radius: 0 0 5px 5px;
    background: var(--bg-primary);
    position: absolute;
    top: 0;
    cursor: default;
    z-index: 2;
    display: none;
    padding: 20px;
    left: 0;
    right: 0;
    top: 80px;
    max-height: calc(100vh - 80px);
    box-shadow: 0 5px 30px 0 var(--header-shadow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 25px;
}

.menu-content {
    text-align: left;
    margin-left: 10px;
}

.menu-text {
    width: 270px;
    font-weight: 400;
    font-size: 12px;
    text-align: justify;
    color: var(--text-primary);
    margin-top: 10px;
}

.menu__overlay {
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--menu-overlay);
    cursor: default;
    display: none;
    z-index: 1;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА MENU (В HEADER ССЫЛКА КАТАЛОГ) */

@media (max-width: 1150px) {
    
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-height: none; 
        border-radius: 0;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-text {
        width: 100%;
        max-width: 100%;
    }
    
    .menu-content {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 770px) {
    
    .menu {
        padding: 10px;
    }
}

/*СТИЛИ ДЛЯ БЛОКА SURVEY-FORM */

.survey-form {
    background: var(--bg-primary);
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0px auto;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1010;
}

.survey-form__indent {
    margin-left: 25px;
}

.survey-form__overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--menu-overlay);
    cursor: pointer;
}
  
.survey-form__shell {
    margin: 0px auto;
    max-width: 1300px;
    background: var(--bg-primary);
    box-shadow: 0px 4px 18px var(--shadow-dark);
    position: relative;
    border-radius: 5px;
    padding-bottom: 30px;
    overflow-y: auto;
    overflow-x: hidden;
}

.survey-form:target {
    display:block;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.survey-form__close {
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color);
    transform: rotate(45deg);
    cursor: pointer;
}

.survey-form__content {
    max-width: 1180px;
    padding: 0 10px;
    margin-left: auto;
    margin-right: auto;
}

.survey-form__combinations {
    display: flex;
    flex-direction: column;
}

.survey-form__section {
    display: grid;
    grid-template-columns: minmax(200px, 400px) minmax(200px, 680px);
    column-gap: 100px;
    align-items: start;
}

.survey-form__mechanical {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 20%;
    align-items: start;
}

.survey-form__checkbox-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(170px, 1.5fr) 1.1fr;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.survey-form__checkbox-row-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.survey-form__header {
    display: flex;
    justify-content: space-between;
}

.survey-form__input {
    width: 100%;
    box-sizing: border-box;
    cursor: text;
    border: 2px solid var(--table-border);
    border-radius: 5px;
    padding: 14px 15px;
    background: var(--form-placeholder-bg);
    outline: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 5px;
    transition: all .3s ease-out;
    resize: none;
}

.survey-form__input:hover,
.survey-form__input--small:hover {
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.survey-form__input--small {
    width: 80%;
}

.survey-form__label {
    font-weight: 400;
    font-size: 12px;
    margin-top: 20px;
    color: var(--text-primary);
    display: block;
}

.survey-form__description {
    font-weight: 400;
    font-size: 16px;
    text-align: justify;
    color: var(--text-primary);    
}

.survey-form__checkbox-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.survey-form__checkbox-column{
    margin-right: 35px;  
}

.survey-form__conditions-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    column-gap: 10px;
}

.survey-form__conditions-grid > * {
    flex: 0 0 280px;
}

.survey-form__pneumatic {
    display: grid;
    grid-template-columns: 280px 280px;
    column-gap: 150px;
}

.survey-form__connectors {
    display: flex;
    align-items: center;
    column-gap: 50px;
}

.survey-form__sections,
.survey-form__sizes,
.survey-form__media {
    display: flex;
    justify-content: space-between;
}

.survey-form__custom-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
}

.survey-form__custom-field {
    width: 100%;
}

.survey-form__mechanical-right {
    margin-top: 40px;
}

.survey-form__custom-field .survey-form__input {
    width: 100%;
    max-width: 300px;
}

.survey-form__high-frequency-first {
    display: grid;
    grid-template-columns: 
        minmax(200px, 280px) 
        minmax(200px, 280px) 
        minmax(300px, auto);
    justify-content: space-between;
}

.survey-form__high-frequency-second {
    display: grid;
    grid-template-columns: 280px 280px;
    column-gap: 20px;
    align-items: flex-end;
}

.survey-form__checkbox {
    position: absolute;
    opacity: 0;
}

.survey-form__checkbox-label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.survey-form__checkbox+label::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid var(--checkbox-border);
    border-radius: 5px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    transition: all .3s ease-out;
}

.survey-form__checkbox:checked+label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.survey-form__checkbox:not(:disabled):not(:checked)+label:hover::before {
    border-color: var(--primary-color);
}

.survey-form__checkbox:not(:disabled):active+label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.survey-form__checkbox:disabled+label::before {
    background-color: var(--primary-color);
}

.survey-form__checkbox--small {
    position: absolute;
    opacity: 0;
}

.survey-form__checkbox--small+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.survey-form__checkbox--small+label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid var(--checkbox-border);
    border-radius: 5px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    transition: all .3s ease-out;
}

.survey-form__checkbox--small:checked+label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.survey-form__checkbox--small:not(:disabled):not(:checked)+label:hover::before {
    border-color: var(--primary-color);
}

.survey-form__checkbox--small:not(:disabled):active+label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.survey-form__checkbox--small:disabled+label::before {
    background-color: var(--primary-color);
}

.survey-form__optical-inputs {
    max-width: 300px;
}

.survey-form__table-container-mobile {
    display: none;
}

.survey-form__table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 5px;
}

.survey-form__table-header-cell {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.survey-form__table-header-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-white);
}

.survey-form__table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
}

.survey-form__table-input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    border: 2px solid var(--table-border);
    border-radius: 5px;
    background: var(--form-placeholder-bg);
    outline: none;
    padding: 0 10px;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
    transition: all .3s ease-out;
}

.survey-form__table-header-mobile {
    display: flex;
    flex-direction: column;
}

.survey-form__table-row-mobile-input {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.survey-form__table-row-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 5px;
}

.survey-form__table-input:hover {
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.survey-form__table-input:focus {
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.survey-form__submit {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    display: block;
    text-align: justify;
    color: var(--text-white);
    border-radius: 5px;
    width: 250px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    padding-top: 0px;
    padding-left: 76px; 
    transition: all .3s ease-out;
}

.survey-form__submit:hover {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.survey-form__textarea {
    resize: none;
    min-height: 150px;
}

.survey-form__checkbox-margin {
    margin-top: 10px;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА SURVEY-FORM */

@media (max-width: 1024px) {

    .survey-form__mechanical {
        grid-template-columns: 1fr;
    }
    
    .survey-form__mechanical > * {
        max-width: 600px;
        width: 100%;
    }
    
    .survey-form__pneumatic {
        column-gap: 25px;
    }
    
    .survey-form__high-frequency-first, 
    .survey-form__section {
        grid-template-columns: 1fr;
    }
    
    .survey-form__high-frequency-first > * {
        max-width: 600px;
        width: 100%;
    }
    
    .survey-form__sections,
    .survey-form__sizes,
    .survey-form__media,
    .survey-form__connectors,
    .survey-form__hf-connectors {
        flex-direction: column;
        row-gap: 10px;
    }
    
    .survey-form__custom-field, 
    .survey-form__conditions {
        margin-top: 10px;
    }
    
    .survey-form__conditions-grid {
        flex-direction: column;
    }
    
    .survey-form__conditions-grid > * {
        flex: 0;
    }
}

@media (max-width: 620px) {

    .survey-form__input {
        width: 99%;
    }
    
    .survey-form__checkbox-column {
        margin-left: 10px;
        margin-right: 0;
    }
    
    .survey-form__checkbox-row,
    .survey-form__pneumatic,
    .survey-form__high-frequency-second {
        grid-template-columns: 1fr;
    }
    
    .survey-form__table-container-mobile {
        display: block;
    }
    
    .survey-form__table-container {
        display: none;
    }
}

/* СТИЛИ ДЛЯ БЛОКА FIND INPUT ПОИСКА ТОВАРОВ */

.find-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px;
}

.find-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    clip-path: polygon(110px 0, 100% 0, 100% 100%, calc(95px + 50px) 100%, 110px calc(100% - 40px));
    z-index: 1;
}

.find-text {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(12px, 1vw, 15px);
    text-align: center;
    flex: 1 1 auto;
    margin-left: 40px;
}

.find-input-wrap {
    position: relative;
    z-index: 2;
}

.find-input {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 6px 220px 5px 15px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    background: var(--bg-primary);
    outline: none;
    transition: all .3s ease-out;
    font-family: var(--font-family);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.find-input:hover {
    box-shadow: 0 0 10px var(--text-secondary);
}

.find-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    flex-shrink: 0;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА FIND INPUT ПОИСКА ТОВАРОВ */

@media (max-width: 1024px) {
    
    .find-text {
        display: none;
    }
    
    .find-input {
        padding: 6px 30px 5px 15px;
    }
    
    .find-input-wrap {
        margin-left: auto;
    }
    
    .find-bg {
        clip-path: polygon(10px 0, 100% 0, 100% 100%, calc(2px + 50px) 100%, 10px calc(100% - 40px));
    }
}

/* СТИЛИ ДЛЯ ПОДСКАЗОК ПОИСКА ТОВАРА В HEADER */

.ui-menu {
    max-width: min(1005px, 80vw);
    left: 50% !important;
    transform: translateX(-42.8%);
    box-shadow: 0 10px 25px var(--shadow-dark);
    border: none;
    background: var(--bg-primary);
    z-index: 1000;
    position: absolute;
    top: 120px !important;
    width: calc(100% - 10px);
}

.ui-menu-item {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item-wrapper {
    display: flex;
    align-items: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(10px, 2vw, 15px);
    color: var(--text-primary);
    text-decoration: none;
    transition: background .05s ease-in;
}

.ui-menu-item-wrapper:hover,
.ui-menu-item-wrapper:focus {
    background: var(--autocomplete-bg);
    border: none;
    outline: none; 
}

.ui-menu-item-wrapper.ui-state-active {
    background: var(--autocomplete-bg);
    border: none;
    color: var(--text-primary);
}

.ui-menu-item.ui-state-active .ui-menu-item-wrapper {
    background: var(--autocomplete-bg);
    border: none;
}

.autocomplete_img {
    width: clamp(30px, 5vw, 48px);
    height: clamp(30px, 5vw, 48px);
    margin-right: clamp(10px, 1.5vw, 15px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-primary);
}

.autocomplete_img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.autocomplete_content {
    flex-grow: 1;
    min-width: 0;
}

.autocomplete_name {
    font-weight: 600;
    font-size: clamp(13px, 1.5vw, 15px);
    display: block;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete_desc {
    font-size: clamp(11px, 1.2vw, 13px);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: clamp(2px, 0.5vw, 3px);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ ПОДСКАЗОК ПОИСКА ТОВАРА В HEADER */

@media (max-width: 480px) {

    .ui-menu {
        width: 72vw;
        max-width: 90vw;
        left: 53% !important;
        margin: 0 auto;
    }
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ПРОДУКЦИЯ (PRODUCTS) */

.production-block__flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.production-block__item {
    width: 48%;
}

.production-card {
    display: flex;
    justify-content: space-around;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
    height: 100%;
    background: var(--bg-primary);
}

.production-card--orange {
    background: var(--production-bg);
    color: var(--text-white);
}

.production-card__image {
    position: relative;
    overflow: hidden;
    margin-left: 10px;
    width: 25%;
}

.production-block__item .production-card__image {
    width: auto;
}

.production-card__image img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.production-card__image:hover img {
    transform: scale(1.02);
}

.production-card__content {
    flex: 0 0 60%;
    padding: 20px;
    display: block;
}

.production-card__title {
    color: var(--production-feature);
    font-weight: 600;
    font-size: 22px;
    transition: all .3s ease-out;
    border-bottom: 2px solid transparent;
}

.production-card__title:hover {
    border-bottom-color: var(--production-feature);
}

.production-card--orange .production-card__title {
    color: var(--text-white);
}

.production-card--orange .production-card__title:hover {
    border-bottom-color: var(--text-white);
}

.production-card__description {
    margin-top: 15px;
    color: var(--text-primary);
}

.production-card__features {
    margin-top: 15px;
    padding-left: 20px;
}

.production-card__features li {
    margin-top: 8px;
    position: relative;
    color: var(--text-primary);
}

.production-card__features li:first-child {
    margin-top: 0;
}

.production-card__features li:before {
    content: "■";
    position: absolute;
    left: -15px;
    color: var(--primary-color);
}

.production-card__features--white li:before {
    color: var(--text-white);
}

.production-card__button {
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    margin-top: 15px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 7px 36px;
    background: var(--bg-primary);
    transition: all .3s ease-out;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    min-width: 120px;
    text-align: center;
}

.production-card__button:hover {
    color: var(--text-white);
    background: var(--primary-color);
}

.production-card__button--white {
    background: var(--primary-color);
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.production-card__button--white:hover {
    background: var(--text-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ПРОДУКЦИЯ (PRODUCTS) */

@media (max-width: 900px) {
    
    .production-block__flex {
        flex-direction: column;
    }
    
    .production-block__item,
    .production-card__image {
        width: 100%;
    }
    
    .production-card__title {
        font-size: 18px;
    }
}

@media (max-width: 620px) {
    
    .production-card {
        display: block;
    }
    
    .production-card__image {
        padding-top: 10px;
    }
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ERROR PAGE */

.error-header {
    text-align: center;
    font-weight: 700;
    font-size: 300px;
    color: var(--primary-color);
    position: relative;
    top: 40px;
}
   
.error-message {
    position: relative;
    font-weight: 700;
    font-size: 80px;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    z-index: 15;
}
   
.error-message_add {
    position: relative;
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 15px;
    z-index: 15;
}
    
.error-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}
   
.error-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--error-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s ease;
    border: 2px solid transparent;
}
    
.error-link:hover {
    background: var(--error-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 230, 0.3);
}
   
.error-wrapper {
    width: 100%;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ERROR PAGE */

@media (max-width: 480px) {
    .error-container {
        padding: 30px 20px;
    }
    .error-code {
        font-size: 4.5rem;
    }
    .error-title {
        font-size: 2.2rem;
    }
}

/* СТИЛИ ДЛЯ ОПИСАНИЯ СТРАНИЦЫ 404 */
    
.search-title {
    font-weight: 600;
    color: var(--text-primary);
}
   
.search-tags {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    position: relative;
    right: 15px;
}
   
.search-tag {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    text-align: center;
    border-radius: 5px;
    padding: 15px 50px;
    background: var(--primary-color);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}
  
.search-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}
    
.search-text:before {
    content: '';
    border: 2px solid var(--primary-color);
    position: relative;
    left: -15px;
    width: 50px;
    height: 0px;
    transform: rotate(-90deg);
    margin: auto 0;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ ОПИСАНИЯ СТРАНИЦЫ 404 */

@media (max-width: 620px) {

    .search-tags {
        flex-wrap: wrap;
        justify-content: center;
        right: 0;
        gap: 10px;
    }

    .search-tag {
        width: calc(50% - 10px);
        height: 40px;
        font-size: 12px;
    }

    .search-form {
        left: 0;
        top: 0;
        padding: 0 10px;
    }

    .search-input {
        width: 100%;
        height: 40px;
    }

    .search-button {
        margin-left: 0;
        bottom: 0;
        width: 100%;
        max-width: 300px;
        margin-top: 10px;
        height: 40px;
    }

    .search-text h2:before {
        left: -10px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА CONTACTS */

.contacts {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts__form {
    width: 100%;
}

.contacts__title {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
}

.contacts__text {
    max-width: 100%;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 136%;
}

.contacts__info {
    width: 100%;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacts__label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.contacts__link,
.contacts__text {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease-out;
}

.contacts__link:hover {
    color: var(--primary-color);
}

.contacts__item_address {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contacts__address {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
}

.contacts__map {
    margin-top: 25px;
}

.contacts__map-container {
    position: relative;
    overflow: hidden;
}

.contacts__map-container iframe {
    width: 100%;
    height: 300px;
}

.form {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.form__field {
    width: 100%;
}

.form__input,
.form__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 0 15px;
    height: 50px;
    background: var(--bg-primary);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: all .3s ease-out;
}

.form__input:placeholder-shown {
    border: 2px solid var(--checkbox-border);
    background: var(--form-placeholder-bg);
}

.form__input:hover {
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.form__textarea {
    height: 220px;
    padding: 15px;
    resize: none;
}

.form__textarea:placeholder-shown {
    border: 2px solid var(--checkbox-border);
    background: var(--form-placeholder-bg);
}

.form__textarea:hover {
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.form__field_textarea {
    grid-column: 1 / -1;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.form__checkbox-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    user-select: none;
    font-weight: 400;
    font-size: 11px;
    color: var(--text-primary);
    cursor: pointer;
    gap: 10px;
}

.form__checkbox-label::before {
    content: '';
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    border: 2px solid var(--checkbox-border);
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    transition: all .3s ease-out;
}

.form__checkbox-input:checked + .form__checkbox-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    border-radius: 5px;
    width: 100%;
    max-width: 208px;
    height: 49px;
    background: var(--primary-color);
    border: none;
    margin-top: 10px;
    transition: all .3s ease-out;
    align-self: center;
}

.form__button:hover {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
}

.contacts {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__checkbox {
    grid-column: 1 / -1;
}

.form__button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
}

.contacts__item {
    flex-direction: row;
    align-items: center;
}

.contacts__label {
    min-width: 80px;
}

.contacts__item_address {
    align-items: center;
}

.contacts__map-container iframe {
    height: 387px;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CONTACTS */

@media (max-width: 1024px) {
    
    .contacts {
        flex-wrap: wrap;
    }
    
    .contacts__form {
        width: 55%;
    }
    
    .contacts__info {
        width: 55%;
    }
}

@media (max-width: 770px) {
    
    .contacts {
        flex-direction: column;
    }
    
    .contacts__form {
        width: 100%;
    }
    
    .contacts__info {
        width: 100%;
    }
    
    .form {
        display: flex;
        flex-direction: column;
    }
    
    .form__button {
        align-self: center;
    }
    
    .contacts__item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contacts__item_address {
        align-items: center;
        flex-direction: row;
    }
    
    .contacts__map-container iframe {
        height: 300px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА ABOUT-US-MODAL */

.about-us-modal {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 1000;
}

.about-us-modal__box {
    margin: 0px auto;
    box-shadow: 0px 4px 18px var(--shadow-dark);
    position: relative;
    height: 100%;
}

.about-us-modal__content {
    display: flex;
    width: 100%;
    height: 100%;
}

.about-us-modal__header {
    flex: 0 0 45%;
    background: var(--primary-color);
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.about-us-modal__body {
    flex: 0 0 55%;
    background: var(--bg-primary);
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 20px 20px 20px 65px;
    position: relative;
}

.about-us-modal__close {
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color);
    transform: rotate(45deg);
    cursor: pointer;
    justify-self: end;
    align-self: start;
    position: absolute;
    top: 20px;
    right: 20px;
}

.about-us-modal__title {
    font-weight: 700;
    font-size: 30px;
    color: var(--text-white);
    position: relative;
    margin-left: 75px;
    margin-top: 30px;
    display: inline-block;
    max-width: 700px;
    padding-left: 20px;
}

.about-us-modal__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--text-white);
}

.about-us-modal__logo {
    margin-bottom: 20px;
}

.about-us-modal__text {
    max-width: 950px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: justify;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА ABOUT-US-MODAL */

@media (max-width: 900px) {
    
    .about-us-modal__content {
        flex-direction: column;
    }
    
    .about-us-modal__header {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .about-us-modal__body {
        flex: 1 1 auto;
        padding: 20px;
    }
    
    .about-us-modal__title {
        margin-left: 0;
        margin-top: 0;
        padding-left: 15px;
    }
}

@media (max-width: 420px) {
    
    .about-us-modal__text {
        font-size: 14px;
    }
}

/* СТИЛИ БЛЯ БЛОКА FOOTER */

.footer {
    position: relative;
    left: 0;
    width: 100%;
}

.footer__main {
    position: relative;
    background: var(--bg-gray);
    padding: 40px 0;
    overflow: hidden;
}

.footer__main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 130px;
    width: 100%;
    height: calc(310px + (1500px - 80vw) * 0.15);
    background: linear-gradient(-115deg, var(--footer-gradient) 0%, var(--footer-gradient) 80%, transparent 80%, transparent 100%);
    z-index: 0;
}

.footer__container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer__logo-section {
    flex: 1 1 290px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.footer__logo {
    text-align: left;
}

.footer__logo-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__logo-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-white);
}

.footer__logo-subtitle {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
}

.footer__copyright {
    font-weight: 400;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 10px;
}

.footer__content {
    flex: 2 1 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__section {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer__section:nth-child(2) {
    flex: 0 1 180px;
}

.footer__heading {
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-white);
    padding: 2px 0 2px 15px;
}

.footer__heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--text-white);
}

.footer__link {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-white);
    transition: all .3s ease-out;
    border-bottom: 1px solid transparent;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 7px;
}

.footer__link:hover {
    opacity: 0.8;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__contact-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer__contact-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-white);
    white-space: nowrap;
    min-width: 60px;
}

.footer__contact-text {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-white);
}

.footer__contact-link {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-white);
    transition: all .3s ease-out;
}

.footer__contact-link:hover {
    opacity: 0.8;
}

.footer__contact-icon {
    display: flex;
    align-items: center;
}

.footer__social {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.footer__social-btn {
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    width: 50px;
    height: 50px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

.footer__social-btn:hover {
    border: 1px solid var(--text-white);
    background: var(--bg-gray);
}

.footer__social-btn:hover svg path {
    fill: var(--text-white);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ FOOTER */

@media (max-width: 1084px) {
    
    .footer__main::before {
        left: 100px;
        height: calc(300px + (710px - 100vw) * 0.15);
        background: linear-gradient(-110deg, var(--footer-gradient) 0%, var(--footer-gradient) 80%, transparent 80%, transparent 100%);
    }
    
    .footer__main {
        padding: 15px 0;
    }
    
    .footer__links {
        gap: 5px;
    }
    
    .footer__content {
        gap: 50px;
    }
}

@media (max-width: 964px) {
    
    .footer__main::before {
        height: 200px;
        left: 150px;
    }
    .footer__logo-section {
        flex: 1 1 300px;
    }
}

@media (max-width: 770px) {
    
    .footer__main::before {
        height: 60px;
    }

    .footer__container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .footer__content {
        flex-direction: column;
        gap: 10px;
    }

    .footer__logo {
        text-align: center;
    }
    
    .footer__logo-text {
        text-align: center;
    }
    
    .footer__heading {
        justify-content: center;
    }
    
    .footer__social-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    
    .footer__main {
        padding: 20px 0;
    }
    
    .footer__container {
        padding: 0 10px;
        gap: 25px;
    }
    
    .footer__logo-section {
        gap: 10px;
    }
    
    .footer__logo-title {
        font-size: 15px;
    }
    
    .footer__logo-subtitle {
        font-size: 12px;
    }
    
    .footer__copyright {
        font-size: 12px;
    }
    
    .footer__heading {
        font-size: 14px;
    }
    
    .footer__link,
    .footer__contact-label,
    .footer__contact-text,
    .footer__contact-link {
        font-size: 12px;
    }
  
    .footer__social-btn {
        width: 40px;
        height: 40px;
    }
  
    .footer-bg {
        background: var(--primary-color);
    }
}

/* Дополнительные улучшения для темной темы */
[data-theme="dark"] .header__burger-line {
    background: var(--text-white);
}

[data-theme="dark"] .ui-menu {
    background: var(--bg-secondary);
}

[data-theme="dark"] .autocomplete_img {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .production-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .production-card--orange {
    background: var(--bg-orange);
}

[data-theme="dark"] .form__input:focus,
[data-theme="dark"] .form__textarea:focus {
    background: var(--bg-primary);
}

[data-theme="dark"] .footer__social-btn {
    background: var(--bg-secondary);
}

[data-theme="dark"] .footer__social-btn:hover {
    background: var(--bg-secondary);
}