/* =============================================
   CSS-переменные и базовые стили
   ============================================= */
:root {
    --accent-color: #D7752D;
    --accent-hover: #c06624;
    --accent-glow: rgba(215, 117, 45, 0.25);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s ease;
    --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
}

/* --- Тема 1: Dark (чёрный + оранжевый акцент) --- */
body.theme-dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #181818;
    --bg-card-hover: #1f1f1f;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    --border-color: #252525;
    --border-accent: rgba(215, 117, 45, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(10, 10, 10, 0.95);
}

/* --- Тема 2: Concrete (бетон + кирпич — строительная эстетика) --- */
body.theme-navy {
    --bg-primary: #f2f0ed;
    --bg-secondary: #e8e4df;
    --bg-card: #ffffff;
    --bg-card-hover: #faf8f6;
    --text-primary: #1a1a1a;
    --text-secondary: #555248;
    --text-muted: #8a857d;
    --border-color: #d4cfc8;
    --border-accent: rgba(215, 117, 45, 0.4);
    --shadow-card: 0 4px 16px rgba(80, 60, 30, 0.08);
    --header-bg: rgba(26, 26, 26, 0.97);
}

/* --- Тема 3: Graphite (средне-серый индустриальный) --- */
body.theme-light {
    --bg-primary: #2a2d31;
    --bg-secondary: #232629;
    --bg-card: #33373c;
    --bg-card-hover: #3a3e44;
    --text-primary: #e8e8e8;
    --text-secondary: #9a9da2;
    --text-muted: #5c6066;
    --border-color: #3e4248;
    --border-accent: rgba(215, 117, 45, 0.45);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(18, 20, 22, 0.95);
}

/* --- Тема 5: Midnight (синий доминирует, чёрный только в хедере и акцентах) --- */
body.theme-midnight {
    --bg-primary: #121630;
    --bg-secondary: #0e1228;
    --bg-card: #1a2040;
    --bg-card-hover: #222a50;
    --text-primary: #e0e4f4;
    --text-secondary: #9098c0;
    --text-muted: #556080;
    --border-color: #283058;
    --border-accent: rgba(215, 117, 45, 0.4);
    --shadow-card: 0 4px 20px rgba(10, 15, 50, 0.4);
    --header-bg: rgba(8, 8, 12, 0.96);
}

/* --- Тема 4: Warm (кремовый + тёмные бордеры и акценты) --- */
body.theme-warm {
    --bg-primary: #fdf9f4;
    --bg-secondary: #f3ece3;
    --bg-card: #ffffff;
    --bg-card-hover: #faf6f0;
    --text-primary: #0f0c0a;
    --text-secondary: #5c4a3a;
    --text-muted: #9a8570;
    --border-color: #3a3028;
    --border-accent: rgba(215, 117, 45, 0.6);
    --shadow-card: 0 4px 14px rgba(20, 10, 0, 0.1);
    --header-bg: rgba(10, 10, 10, 0.97);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Кнопки
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn--outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   Шапка
   ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.header__logo img {
    height: 36px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 28px;
}

.header__link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.header__link:hover {
    color: var(--accent-color);
}

.header__link--mobile-cta {
    display: none;
}

.header__cta {
    display: none;
}

/* Concrete/Warm: хедер чёрный, ссылки светлые */
body.theme-navy .header,
body.theme-warm .header {
    border-bottom-color: #222;
}

body.theme-navy .header__link,
body.theme-warm .header__link {
    color: #b0b0b0;
}

body.theme-navy .header__link:hover,
body.theme-warm .header__link:hover {
    color: var(--accent-color);
}

body.theme-navy .burger span,
body.theme-warm .burger span {
    background: #f0f0f0;
}


body.theme-navy .process__step-number {
    background: #e8e4df;
}

body.theme-navy .service-card {
    border-color: #ccc7bf;
}

body.theme-navy .faq-item {
    border-color: #ccc7bf;
}

/* CTA-блок — тёмный в светлых темах (Concrete, Warm) */
body.theme-navy .cta-block,
body.theme-warm .cta-block {
    background: #1a1a1a;
    border-color: rgba(215, 117, 45, 0.3);
    color: #f0f0f0;
}

body.theme-navy .cta-block__text,
body.theme-warm .cta-block__text {
    color: #a0a0a0;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Hero
   ============================================= */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #111 38%, rgba(17,17,17,0.85) 48%, rgba(17,17,17,0.4) 58%, transparent 68%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #d0d0d0;
    margin-bottom: 32px;
    line-height: 1.5;
    font-weight: 400;
}

.hero__badges {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #c0c0c0;
}

.hero__badge svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.hero__socials {
    margin-top: 28px;
}

/* =============================================
   Преимущества
   ============================================= */
.advantages {
    padding: 44px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    text-align: center;
    padding: 16px 12px;
}

.advantage-item__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--accent-color);
}

.advantage-item__icon svg {
    width: 100%;
    height: 100%;
}

.advantage-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.advantage-item__text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================
   Секции — общие
   ============================================= */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 560px;
}

/* =============================================
   Услуги
   ============================================= */
.services {
    padding: 60px 0;
    background: var(--bg-primary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition),
                box-shadow var(--transition), background var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.service-card__icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.service-card__subtitle {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.service-card__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
}

.service-card__benefit {
    font-size: 0.84rem;
    color: var(--text-primary);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.service-card__benefit strong {
    color: var(--accent-color);
}

/* =============================================
   О нас
   ============================================= */
.about {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about__text strong {
    color: var(--text-primary);
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.about__feature svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* =============================================
   Портфолио — просмотр + миниатюры
   ============================================= */
.portfolio {
    padding: 60px 0;
    background: var(--bg-primary);
}

/* Основной просмотр */
.portfolio__viewer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio__main {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
    min-height: 200px;
}

.portfolio__main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.portfolio__main video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.portfolio__main .portfolio__play-main {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.portfolio__main .portfolio__play-main svg {
    width: 64px;
    height: 64px;
    color: #fff;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.portfolio__main .portfolio__play-main:hover {
    background: rgba(0,0,0,0.15);
}

.portfolio__main .portfolio__play-main.hidden {
    display: none;
}

.portfolio__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), background var(--transition);
    z-index: 2;
}

.portfolio__arrow:hover {
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
}

.portfolio__arrow svg {
    width: 20px;
    height: 20px;
}

.portfolio__counter {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Миниатюры */
.portfolio__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.portfolio__thumbs::-webkit-scrollbar {
    height: 4px;
}

.portfolio__thumbs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.portfolio__thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    opacity: 0.5;
    transition: opacity var(--transition), border-color var(--transition);
}

.portfolio__thumb:hover {
    opacity: 0.8;
}

.portfolio__thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.portfolio__thumb img,
.portfolio__thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.portfolio__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

.portfolio__note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =============================================
   Как мы работаем (Процесс)
   ============================================= */
.process {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.process__steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process__step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 12px 8px;
}

.process__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 auto 12px;
}

.process__step-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.process__step-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================
   CTA блок
   ============================================= */
.cta-section {
    padding: 44px 0;
    background: var(--bg-primary);
}

.cta-block {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.5;
}

.cta-block__title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-block__text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-block .btn {
    position: relative;
}

/* =============================================
   Форма обратной связи
   ============================================= */
.contact {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact__guarantees {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.contact__guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact__guarantee svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input--error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    font-size: 0.78rem;
    color: #e74c3c;
    min-height: 1.1em;
}

/* =============================================
   FAQ — аккордеон
   ============================================= */
.faq {
    padding: 60px 0;
    background: var(--bg-primary);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.faq-item--active {
    border-color: var(--border-accent);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--accent-color);
}

.faq-item__arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-color);
    transition: transform var(--transition);
}

.faq-item--active .faq-item__arrow {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.faq-item--active .faq-item__answer {
    max-height: 300px;
    padding: 0 20px 16px;
}

.faq-item__answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   Страница политики конфиденциальности
   ============================================= */
.legal {
    padding: 72px 0 100px;
}

.legal__inner {
    max-width: 760px;
}

.legal__title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.legal__updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.legal__intro {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.legal__section {
    margin-bottom: 32px;
}

.legal__section:last-child {
    margin-bottom: 0;
}

.legal h2 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.legal p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 22px;
    margin-top: 10px;
}

.legal li {
    margin-bottom: 6px;
}

.legal li:last-child {
    margin-bottom: 0;
}

/* =============================================
   Подвал
   ============================================= */
.footer {
    padding: 36px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    opacity: 0.7;
    height: 32px;
    width: auto;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer__city {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), opacity var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-link__logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.contact__socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.contact__socials-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer__legal {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--accent-color);
}

/* =============================================
   Модальное окно
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal--visible {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    max-width: 400px;
    width: calc(100% - 40px);
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal--visible .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.modal__icon--success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.modal__icon--error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.modal__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   Адаптив
   ============================================= */
@media (min-width: 769px) {
    .header__cta {
        display: inline-flex;
    }
}

@media (max-width: 1024px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .process__steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        z-index: 99;
    }

    body.theme-navy .header__nav,
    body.theme-warm .header__nav {
        background: #111111;
        border-bottom-color: #222;
    }

    body.theme-navy .header__nav .header__link,
    body.theme-warm .header__nav .header__link {
        color: #ccc;
    }

    .header__nav.open {
        display: flex;
    }

    .header__nav .header__link {
        font-size: 0.95rem;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        transition: background var(--transition), color var(--transition);
    }

    .header__nav .header__link:hover {
        background: var(--bg-card-hover);
    }

    .header__link--mobile-cta {
        display: block;
        color: var(--accent-color);
        font-weight: 600;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 2px solid var(--accent-color);
    }

    .burger {
        display: flex;
    }

    .hero__bg {
        width: 100%;
    }

    .hero__overlay {
        background: linear-gradient(180deg, rgba(17,17,17,0.9) 30%, rgba(17,17,17,0.6) 60%, rgba(17,17,17,0.4) 100%);
    }

    .hero {
        min-height: 70vh;
    }

    .hero__inner {
        padding: 60px 0;
    }

    .hero__content {
        text-align: center;
        margin: 0 auto;
    }

    .hero__badges {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        align-items: center;
    }

    .hero__socials {
        justify-content: center;
    }

    .advantages__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about__image {
        order: -1;
    }

    .portfolio__main img,
    .portfolio__main video {
        height: 280px;
    }

    .portfolio__arrow {
        width: 36px;
        height: 36px;
    }

    .portfolio__arrow svg {
        width: 16px;
        height: 16px;
    }

    .portfolio__thumb {
        flex: 0 0 64px;
        height: 48px;
    }

    .process__steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process__step {
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        gap: 0 14px;
        padding: 12px 0;
    }

    .process__step-number {
        margin: 0;
        grid-row: span 2;
        align-self: center;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-block {
        padding: 32px 20px;
    }

    .cta-block .btn--lg {
        padding: 14px 24px;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }

    .services,
    .contact,
    .faq,
    .about,
    .portfolio,
    .process {
        padding: 44px 0;
    }

    .cta-section {
        padding: 28px 0;
    }

    .advantages {
        padding: 28px 0;
    }

    .footer__top,
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer__contacts {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .advantages__grid {
        grid-template-columns: 1fr;
    }
}
