:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-orange: #ff4500;
    --color-gray-bg: #f4f4f4;
    --font-main: 'Main', sans-serif;
}

/* Fonts Setup */
@font-face {
    font-family: 'Main';
    src: url('../fonts/main-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Main';
    src: url('../fonts/main-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Main';
    src: url('../fonts/main-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-main);
    background-color: var(--color-gray-bg);
    color: var(--color-black);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Header */
.header {
    background-color: var(--color-gray-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo__img { border-radius: 50%; object-fit: cover; }
.logo__text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.1; text-transform: uppercase;}

/* Info */
.info { display: none; }
@media (min-width: 992px) {
    .info { display: flex; flex-direction: column; font-size: 14px; margin-left: 20px; }
    .info__phone { font-weight: 700; margin-top: 2px; }
}

/* Nav */
.header__nav { display: none; }
@media (min-width: 992px) {
    .header__nav { display: block; margin-left: auto; }
    .nav__list { display: flex; gap: 10px; }
    .nav__link {
        background: var(--color-white);
        padding: 10px 20px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }
    .nav__link:hover, .nav__link--active {
        background: var(--color-black);
        color: var(--color-white);
    }
}

/* Burger */
.header__burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}
.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-black);
    margin-bottom: 5px;
    border-radius: 2px;
}
@media (min-width: 992px) { .header__burger { display: none; } }

/* Footer */
.footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    background: #e0e0e0;
}
.footer__link {
    color: var(--color-orange);
    text-decoration: underline;
    font-size: 14px;
}

/* --- Common Section Styles --- */
.section {
    padding: 60px 0;
}
.section__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-family: 'Main', sans-serif;
    letter-spacing: -0.5px;
}
.section__title--multiline {
    line-height: 1.2;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 2;
}
.hero__container {
    position: relative;
    z-index: 3;
}
.hero__title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Services Grid --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-card__img-wrapper {
    height: 200px;
    overflow: hidden;
}
.service-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.05);
}
.service-card__footer {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    background: #eeeeee;
    color: var(--color-black);
}

/* --- About / Advantages --- */
.about__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .about__layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 576px) {
    .about__grid { grid-template-columns: 1fr; }
}
.feature-box {
    background: #f4f4f4;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
}
.feature-box__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.feature-box__text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.about__image img,
.about__image video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- Contacts & Map --- */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}
@media (min-width: 768px) { .contacts__grid { text-align: left; } }

.contact-col__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.contact-col p, .contact-col a {
    font-size: 16px;
    line-height: 1.6;
    display: block;
}
.contact-col__sub {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.schedule-row {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
}
@media (min-width: 768px) { .schedule-row { margin: 0; } }

.map-wrapper {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
}

/* --- Inner Pages Hero --- */
.hero--inner {
    height: 40vh;
    min-height: 300px;
}

/* --- Service Details Layout --- */
.service-details__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .service-details__container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

/* Content Typography */
.content-block {
    font-size: 16px;
    line-height: 1.6;
}
.content-block p { margin-bottom: 20px; }
.content-block strong { font-weight: 700; }

/* Custom List */
.custom-list {
    list-style: none;
    margin-top: 20px;
}
.custom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.custom-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-black);
    font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

/* --- Form Section FIXED FINAL --- */
.form-section__icon {
    text-align: left;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 14px 15px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    outline: none;
    appearance: none; /* Убирает системные стили браузера */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Desktop Grid Layout for Form */
@media (min-width: 768px) {
    .contact-form {
        display: grid;
        gap: 30px;
        /* Определяем области: 
           Имя | Сообщение
           Тел | Сообщение
           Кнопка (пусто справа)
        */
        grid-template-areas: 
            "name message"
            "phone message"
            "btn btn";
        grid-template-columns: 1fr 1fr;
    }

    /* ВАЖНО: В HTML элементам должны быть присвоены эти классы */
    .name-area { grid-area: name; }
    .phone-area { grid-area: phone; }
    .message-area { grid-area: message; }
    
    .btn-area { 
        grid-area: btn; 
        text-align: right; /* Кнопка справа */
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    background-color: #0056b3;
    color: white;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover { 
    background-color: #004494; 
    transform: translateY(-2px);
}

/* --- Mobile Menu State --- */
.nav--open {
    display: block !important;
    position: fixed;
    top: 60px; /* Высота хедера */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    padding: 20px;
    z-index: 99;
    overflow-y: auto;
}
.nav--open .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.nav--open .nav__link {
    font-size: 18px;
    color: var(--color-black);
    background: transparent;
}
.no-scroll { overflow: hidden; }

/* Burger Animation */
.burger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Promo Popup --- */
.promo-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.promo-popup--visible {
    opacity: 1;
    visibility: visible;
}
.promo-popup__content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.promo-popup__close {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none;
    font-size: 24px; cursor: pointer;
}