/* ==========================================================================
   1. ПОДКЛЮЧЕНИЕ ШРИФТОВ
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter_24pt-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter_24pt-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter_24pt-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter_24pt-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter_24pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Inter_24pt-ExtraBold.ttf') format('truetype');
}

/* ==========================================================================
   2. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
:root {
    --main-dark: #1e2022;       
    --sub-dark: #4e5154;        
    --accent-dark: #1b1d22;     
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden !important; /* Гарантированная защита от горизонтального скролла */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--main-dark);
    line-height: 1.5;
    background-color: #e9ecf1; 
    position: relative;
}

/* Фиксированный фон */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('../img/fon.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.22; 
    filter: grayscale(30%) blur(2px);
    pointer-events: none;
}

.light-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-top {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    right: -100px;
}

.glow-bottom {
    display: none; 
}

.container {
    width: 1140px;
    max-width: 92%;
    margin: 0 auto;
}

/* ==========================================================================
   3. СТРУКТУРНЫЕ БЛОКИ (ДЕСКТОП)
   ========================================================================== */

/* Шапка */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(233, 236, 241, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo .accent-text {
    color: #5a5d61;
    font-weight: 400;
    border-left: 2px solid var(--main-dark);
    padding-left: 8px;
    margin-left: 6px;
    font-size: 16px;
}

nav {
    display: flex;
    gap: 34px;
}

nav a {
    text-decoration: none;
    color: var(--main-dark);
    opacity: .8;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    color: #000;
    opacity: 1;
}

.phone {
    color: var(--main-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

/* Главный экран */
.hero {
    padding-top: 180px;
    padding-bottom: 55px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    color: #434750;
}

.hero p {
    font-size: 20px;
    color: var(--sub-dark);
    max-width: 760px;
    margin: 0 auto 35px auto;
}

.hero-logo {
    margin-bottom: 25px; 
    display: flex;
    justify-content: center;
}

.hero-logo img {
    max-width: 220px;   
    height: auto;       
    object-fit: contain;
}

.buttons {
    display: flex;
    justify-content: center;
}

.btn-action {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: .25s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    background: #000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* О компании */
.about {
    padding: 40px 0;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 45px;
    box-shadow: var(--card-shadow);
}

.about-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center; 
}

.about p {
    color: var(--sub-dark);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Секция продукции */
.services {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 800;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 45px 24px;
    box-shadow: var(--card-shadow);
    transition: .3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.card h3 {
    font-size: 22px;
    font-weight: 700;
}

/* Преимущества */
.advantages {
    padding: 50px 0;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.adv-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    transition: .3s ease;
}

.adv-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.adv-card h3 {
    color: var(--main-dark);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

.adv-card p {
    color: var(--sub-dark);
    font-size: 15px;
    line-height: 1.6;
}

/* Контакты */
.contacts {
    padding: 60px 0;
}

.contacts-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Меняем 3 на 2 колонки */
    gap: 40px;
    background: rgba(255, 255, 255, 0.75); 
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px;
}

.contacts h2 {
    font-size: 28px; 
    margin-bottom: 20px;
}

.contact-item {
    color: var(--main-dark);
    margin-bottom: 14px;
}

.c-link {
    color: inherit;         
    text-decoration: none;  
    transition: color 0.2s ease;
}

.c-link:hover {
    color: #000;            
    text-decoration: underline; 
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.socials a {
    color: var(--main-dark);             
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);     
    border: 1px solid rgba(0, 0, 0, 0.02);
    font-weight: 600;
    font-size: 14px;
    transition: .25s ease;
}

.socials a:hover {
    background: #1e2022;                 
    color: #fff;                         
    transform: translateY(-2px);         
}

/* Подвал */
.footer {
    padding: 26px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    color: var(--sub-dark);
    text-align: center;
}

/* ==========================================================================
   4. ПОЛНАЯ МОБИЛЬНАЯ АДАПТИВНОСТЬ (ЭКРАНЫ ДО 900px)
   ========================================================================== */
@media (max-width: 900px) {
    
    /* Шапка: убираем лишнее, выравниваем элементы */
    header nav {
        display: none !important;
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Складываем логотип в 2 строки, чтобы освободить ширину */
    .logo {
        font-size: 18px !important;
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-start !important;
        line-height: 1.1 !important;
        white-space: nowrap;
    }
    
    .logo .accent-text {
        font-size: 11px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-transform: uppercase;
        opacity: 0.7;
        border-left: none !important; /* Убираем вертикальную черту, так как теперь перенос */
    }

    /* Телефон в шапке */
    .phone {
        font-size: 14px !important;
        white-space: nowrap !important;
        margin-left: auto !important;
    }

    /* Главный экран: масштабируем гигантские шрифты */
    .hero h1 {
        font-size: 36px !important;
    }
    
    .hero p {
        font-size: 16px !important;
    }

    /* Блок преимуществ: разворачиваем в одну колонку */
    .adv-grid {
        display: flex !important;
        flex-direction: column !important; 
        gap: 20px !important;              
    }

    .adv-card {
        width: 100% !important;
        padding: 24px !important;          
    }

    .adv-card h3 {
        font-size: 20px !important;
    }

    /* Блок контактов: разворачиваем в вертикальный список */
    .contacts-box {
        display: flex !important;
        flex-direction: column !important; 
        gap: 35px !important;
        padding: 30px 24px !important;
    }

    .contact-column {
        width: 100% !important;
        text-align: left !important;
    }

    /* Кнопки соцсетей: ровно в строчку с переносом */
    .socials {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;     
        gap: 10px !important;
        margin-top: 15px !important;
    }

    .socials a {
        flex: 1 1 calc(33.333% - 10px); 
        min-width: 85px !important;      
        text-align: center !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/* Дополнительное микро-сжатие для совсем маленьких дисплеев (до 375px) */
@media (max-width: 375px) {
    .logo { font-size: 16px !important; }
    .logo .accent-text { font-size: 10px !important; }
    .phone { font-size: 12px !important; }
}