/* ========== ПЕРЕМЕННЫЕ И СБРОС ========== */
:root {
    --bg-dark: #111111;
    --bg-header: #040404;
    --bg-card: #1a1a1a;
    --accent: #FF9A00;
    --accent-hover: #e68a00;
    --text-white: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
    
    /* ВОЗВРАЩАЕМ СТАНДАРТНЫЙ ВИД */
    --font-main: 'Inter', sans-serif, system-ui;
    --font-accent: 'Russo One', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.select-none { user-select: none; }
.accent { color: var(--accent); white-space: nowrap; }
.accent-font { font-family: var(--font-accent); }

/* ========== ЗАГРУЗЧИК ========== */
#loader {
    display: flex;
    position: fixed;
    inset: 0;
    background-color: #000;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader img {
    width: 50%;
    height: auto;
    animation: pulse 1.25s infinite;
    border-radius: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== ШАПКА ========== */
.header {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
    background-color: var(--bg-header);
    height: 120px;
    box-shadow: 0px 3px 20px rgba(255, 154, 0, 0.7);
    transition: var(--transition);
}

.header.scrolled {
    height: 80px;
    box-shadow: 0px 3px 20px rgba(255, 255, 255, 0.7);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    width: 100%;
}

.display-flex {
    display: flex;
    align-items: center;
}

/* ========== ЛОГОТИП В ШАПКЕ ========== */
.logo-link {
    display: flex;
    align-items: center;
    z-index: 98;
    text-decoration: none;
}

.logo-img {
    height: 60px; 
    width: auto;
    max-width: 250px; /* Ограничиваем ширину на всякий случай */
    transition: var(--transition);
    object-fit: contain;
}

/* При скролле */
.header.scrolled .logo-img {
    height: 40px; 
}

/* Навигация */
.header-navigation { margin-left: auto; }
.header-navigation ul { gap: 25px; margin-right: 25px; }

.header-navigation a {
    color: var(--text-white);
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-navigation a:hover { color: var(--accent); }

/* Кнопка "Оформить заказ" */
.slide-btn {
    position: relative;
    min-width: fit-content;
    padding: 10px 15px;
    border: 3px solid var(--accent);
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
}

.slide-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.15s;
    z-index: -1;
}

.slide-btn:hover::before { transform: translateX(0); }

/* ========== БУРГЕР-МЕНЮ ========== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Линии разделители */
.line-up, .bottom-line {
    position: absolute;
    height: 1px;
    left: 0;
    width: 100%;
    background-color: var(--accent);
}

.line-up { top: 0; }
.bottom-line { bottom: 0; }

#headerLine {
    opacity: 0;
    background-color: var(--text-white);
    transition: opacity 0.25s ease;
}

#headerLine.scrolled { opacity: 1; }

/* ========== КНОПКА "НАВЕРХ" ========== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    width: 56px;
    border-radius: 16px;
    background-color: rgba(17, 17, 17, 0.56);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    color: #fff;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.back-to-top:hover { border-color: hsla(0, 0%, 100%, 0.56); }
.back-to-top.hidden { opacity: 0; visibility: hidden; }

/* ========== HERO BLOCK ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero__content {
    position: relative;
    z-index: 4;
    width: 60%;
    padding-left: 60px; 
    padding-block: 40px;
}

.hero__subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.hero__title {
    font-family: var(--font-accent);
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.15;
    margin-bottom: 40px;
    text-transform: uppercase;
    max-width: 1024px;
}

.hero__list {
    list-style: none;
    margin-bottom: 50px;
}

.hero__list li {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__list li::before {
    content: '—';
    color: var(--text-muted);
}

.hero__btn {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    width: fit-content;
    transition: var(--transition);
}

.hero__btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.hero__media {
    position: absolute;
    top: 60px;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    border-bottom-left-radius: 200px; 
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 20%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero__bg-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    font-family: var(--font-accent);
    font-size: 14vw;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    line-height: 0.8;
    letter-spacing: -2px;
}

/* ========== О КОМПАНИИ (ПОСЛЕ HERO) ========== */
.about-brief-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    align-items: center;
}

.about-brief__text {
    position: relative;
}

.about-brief__desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-brief__desc b {
    color: var(--text-white);
}

.about-brief__stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.stat-item__num {
    font-family: var(--font-accent);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ========== КОНТЕНТНЫЕ БЛОКИ ========== */
.content-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 30px;
}

.content-title {
    margin: 0;
    padding-block: 10px;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    font-family: var(--font-accent);
}

.text-holder {
    width: 90%;
    max-width: 900px;
    font-size: 35px;
    text-align: center;
    margin-bottom: 20px;
}

.history-text { 
    font-size: 20px; 
    text-align: left; 
    line-height: 1.7;
    color: var(--text-muted);
}

/* ========== КАРТОЧКИ УСЛУГ ========== */
.direction-pc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-block: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: 20px;
    width: 100%;
}

.direction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 154, 0, 0.1);
}

.direction-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.direction-card__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
}

.direction-card__title {
    font-family: var(--font-accent);
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.direction-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Список внутри карточки */
.direction-card__list {
    list-style: none; /* Убираем стандартные маркеры */
    margin-top: 15px;
    padding: 0;
}

.direction-card__list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

/* Оранжевая точка вместо стандартного маркера */
.direction-card__list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
    top: 1px;
}

.direction-card__more {
    font-style: italic;
    opacity: 0.7;
    margin-top: 10px;
}

/* Убираем маркер у этого пункта */
.direction-card__more::before {
    display: none;
}


/* ========== CTA БЛОК ========== */
.cta-section {
    padding: 80px 20px;
    background-color: var(--bg-header);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 154, 0, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.cta-content { flex: 1; }

.cta-title {
    font-family: var(--font-accent);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

.cta-action {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 154, 0, 0.3);
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 154, 0, 0.4);
}

.cta-note {
    display: inline-block;
    font-size: 15px;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--text-muted);
    padding-bottom: 2px;
    transition: var(--transition);
}

.cta-note:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ========== ФОРМА ЗАЯВКИ ========== */
.order-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.order-title {
    font-family: var(--font-accent);
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.order-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.order-form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 154, 0, 0.1);
}

.form-input::placeholder { color: #555555; }

.order-btn {
    background-color: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    width: fit-content;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(255, 154, 0, 0.2);
}

.order-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 154, 0, 0.3);
}

.order-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    max-width: 100%;
    margin-top: 15px;
}

.form-checkbox input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--text-white);
    text-decoration: underline;
    transition: color 0.2s;
}

.form-checkbox a:hover { color: var(--accent); }

.form-message {
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    color: #4ade80;
    font-weight: 600;
}

.form-message.error {
    display: block;
    color: #f87171; /* Красный цвет для ошибок */
    font-weight: 600;
}

/* Альтернатива: соцсети под формой */
.form-alternative {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-alternative__text {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.form-alternative .socialContainer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* ========== ПОРТФОЛИО (КАРУСЕЛИ) ========== */
.portfolio-section {
    width: 100%;
    margin-bottom: 60px;
}

.portfolio-section:last-child { margin-bottom: 0; }

.portfolio-subtitle {
    font-family: var(--font-accent);
    font-size: 24px;
    color: var(--text-white);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-carousel,
.video-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 20px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-carousel::-webkit-scrollbar,
.video-carousel::-webkit-scrollbar { display: none; }

.portfolio-item {
    flex: 0 0 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card);
    scroll-snap-align: start;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.video-item {
    flex: 0 0 400px;
    height: 225px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    scroll-snap-align: start;
    position: relative;
}

.video-item iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    display: block;
}

/* Обложка видео */
.video-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: pointer;
    z-index: 2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    font-size: 0;
    color: transparent;
}

.video-play-btn {
    position: relative;
    z-index: 3;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(255, 154, 0, 0.2);
    transition: all 0.3s ease;
}

.video-cover:hover .video-play-btn {
    background: var(--accent-hover);
    box-shadow: 0 0 0 15px rgba(255, 154, 0, 0.2);
}

.video-iframe-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.video-iframe-container iframe {
    width: 100%; height: 100%;
    border: none;
}

/* Кнопки карусели */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

/* ========== ОТЗЫВЫ 2ГИС ========== */
.reviews-widget-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 15px;
    overflow: hidden;
}

.reviews-widget-container iframe {
    border-radius: 15px;
    background: #fff;
}

/* ========== КОНТАКТЫ ========== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три карточки в ряд */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding-inline: 20px;
}

.contact-card {
    background: var(--bg-card); /* Темный фон, как у услуг */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 154, 0, 0.1);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.contact-card__icon svg {
    width: 100%;
    height: 100%;
}

.contact-card__title {
    font-family: var(--font-accent);
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.contact-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Ссылки и копирование внутри карточки */
.contact-card__text a {
    transition: color 0.2s;
}
.contact-card__text a:hover {
    color: var(--accent);
}

.email-copy {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s;
}
.email-copy:hover {
    color: var(--accent);
}

.copy-message {
    margin-top: 5px;
    color: #4ade80;
    font-size: 13px;
    height: 18px;
}

.copy-message {
    margin-top: 5px;
    color: #4ade80;
    font-size: 14px;
    height: 20px;
}

/* ========== СОЦСЕТИ ========== */
.social-links-container {
    display: flex;
    padding: 40px 0;
    justify-content: center;
}

.social-links { gap: 20px; display: flex; }
.card { display: flex; align-items: center; justify-content: center; gap: 20px; }

.socialContainer {
    width: 52px;
    height: 52px;
    background-color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.socialSvg path { fill: #fff; }

.containerOne:hover { background-color: #0072b1; }
.containerTwo:hover { background-color: #00acee; }
.containerThree:hover { background-color: #B39C32; }
.containerFour:hover { background-color: #2D792E; }
.containerFive:hover { background-color: #C73D3D; }

.socialContainer:hover .socialSvg { animation: slide-in-top 0.3s both; }

@keyframes slide-in-top {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ========== FAQ (АККОРДЕОН) ========== */
.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 154, 0, 0.3);
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-family: var(--font-accent);
    font-size: 18px;
    color: var(--text-white);
    cursor: pointer;
    list-style: none; /* Убираем стандартный треугольник */
    text-transform: uppercase;
}

/* Убираем стандартный маркер в Safari */
.faq-question::-webkit-details-marker {
    display: none;
}

/* Иконка плюс/минус */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Горизонтальная линия */
.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

/* Вертикальная линия */
.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Когда открыто — вертикальная линия исчезает (превращается в минус) */
.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ========== КАРТА ========== */
.map-container {
    width: 90%;
    max-width: 1200px;
    margin-block: 40px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe { display: block; }

/* ========== ФУТЕР ========== */
.footer {
    background-color: var(--bg-header);
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 2px solid var(--accent);
}

.footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__link {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer__link:hover { color: var(--accent); }

/* ========== ПЛАШКА COOKIE ========== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    transform: translateY(150%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--text-white);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner__text a:hover { color: var(--accent); }

/* НОВОЕ: Контейнер для кнопок */
.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между кнопками */
    flex-shrink: 0; /* Чтобы кнопки не сжимались, если текст длинный */
}

/* Кнопка "Принять" в плашке */
.cookie-banner button {
    background-color: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-banner button:hover { background-color: var(--accent-hover); }

/* НОВОЕ: Стили для кнопки "Отклонить" */
.cookie-banner #cookie-decline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 19px; /* Чуть меньше паддинг, чтобы компенсировать рамку */
}

.cookie-banner #cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========== АДАПТИВ ========== */

@media (max-width: 1280px) {
    .header-container { padding: 0 30px; }
}

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .slide-btn { display: none; }
    .hero { flex-direction: column; padding-top: 100px; min-height: auto; }
    .hero__content { width: 100%; padding: 40px 20px 20px; text-align: center; align-items: center; order: 1; }
    .hero__title { font-size: 32px; }
    .hero__list { display: inline-flex; flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
    .hero__media {
        position: relative; top: 0; width: 100%; height: 50vh; order: -1;
        border-radius: 0; border-bottom-left-radius: 80px; border-bottom-right-radius: 80px;
    }
    .hero__media::before { display: none; }
    .hero__bg-text { left: auto; right: 20px; bottom: 80px; font-size: 18vw; }
    .direction-pc { grid-template-columns: repeat(2, 1fr); }
    .header-navigation { margin-left: unset; }
    .header-navigation a {font-size: 18px;}
    .about-brief-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-brief__stats {
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 30px;
    }
    .stat-item__num
    {
        text-align: center;
    }
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-title { font-size: 40px; }
    .text-holder { font-size: 24px; }
    .cta-container { flex-direction: column; text-align: center; }
    .cta-action { width: 100%; }
    .cta-btn { width: 100%; text-align: center; }
    .portfolio-item { flex: 0 0 250px; height: 350px; }
    .video-item { flex: 0 0 320px; height: 180px; }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .header { height: 100px; }
    .burger-menu { display: flex; }
    
    .header-navigation {
        position: absolute; top: 100%; left: 0; width: 100%; height: auto;
        background-color: var(--bg-header); display: flex; flex-direction: column;
        align-items: center; justify-content: center; padding: 30px 0;
        transition: all 0.3s ease; opacity: 0; visibility: hidden;
        transform: translateY(-20px); z-index: 90; margin-left: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .header-navigation.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .header-navigation ul { flex-direction: column; gap: 20px; margin-right: 0; }
    .header-navigation a { font-size: 20px; }

    .content-block { padding: 40px 20px; }
    .content-title { font-size: 32px; }
    .history-text { font-size: 16px; }
    
    .direction-pc { grid-template-columns: 1fr; gap: 15px; }
    .direction-card { padding: 24px; }
    
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .order-container { padding: 25px 20px; }
    .order-btn { width: 100%; text-align: center; }

    .portfolio-carousel, .video-carousel { padding: 10px 15px 20px; gap: 15px; }
    .portfolio-item { flex: 0 0 200px; height: 300px; }
    .video-item { flex: 0 0 280px; height: 158px; }

    .contact-container {
        grid-template-columns: 1fr; /* На мобильных 1 карточка */
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 14px;
    }

    .carousel-btn { display: none; }

    /* Cookie Banner Mobile */
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    .cookie-banner__actions {
        width: 100%;
        justify-content: space-between; /* Или flex-end, если хотите прижать вправо */
    }
    .cookie-banner button {
        flex: 1;
        text-align: center;
        padding: 12px 15px;
    }
    .cookie-banner #cookie-decline {
        padding: 11px 14px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .hero__title { font-size: 24px; }
    .hero__list li { font-size: 14px; }
    .about-brief__stats {
        flex-direction: column;
        gap: 20px;
    }
    .socialContainer { width: 40px; height: 40px; border-radius: 12px; }
    .social-links { gap: 10px; }
    .content-title { font-size: 28px; }
    .info-text { font-size: 14px; }
    .text-holder { font-size: 20px; }
}