/* ========== ROOT ========== */
:root {
    --primary: #0f1a2e;
    --accent: #00a19b;
    --accent-soft: rgba(0, 161, 155, 0.12);

    --bg: #f8fafc;
    --bg-alt: #e9f0f7;
    --white: #ffffff;

    --text: #1e293b;
    --text-light: #64748b;

    --radius: 18px;
    --radius-sm: 12px;

    --shadow-sm: 0 6px 18px rgba(15, 26, 46, 0.08);
    --shadow: 0 18px 40px rgba(15, 26, 46, 0.16);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: var(--radius); }

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 3.4rem); }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    padding: 100px 0;
    background: var(--bg-alt);
}

.text-center { text-align: center; }

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(248, 250, 252, 0.85);
    background: var(--primary);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 26, 46, 0.06);
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
    background: #0f1a2edf;
    box-shadow: 0 10px 30px rgba(15, 26, 46, 0.12);
    padding: 10px 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo__accent { color: var(--accent); }

.nav {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(10px, 2vw, 26px);
}

.nav__link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
    font-size: clamp(0.78rem, 1vw, 0.98rem);
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

/* burger */
.burger {
    display: none;
    width: 26px;
    height: 20px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger span + span { margin-top: 5px; }

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO (по ТЗ: центрированный, НА ВЕСЬ ЭКРАН И ТЁМНЫЙ) ========== */
.hero {
    height: 100vh;
    min-height: 620px;
    background: linear-gradient(135deg, rgba(15,26,46,0.92) 0%, rgba(20,42,69,0.72) 50%, rgba(15,26,46,0.92) 100%), url('/assets/images/hero/hero-1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.hero__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    margin-bottom: 18px;
    color: #fff;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 28px;
    max-width: 620px;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 161, 155, 0.35);
}

.btn--primary:hover {
    background: #00b0aa;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 161, 155, 0.45);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
}

/* hero metrics */
.hero__metrics {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.metric {
    min-width: 140px;
}

.metric__value {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent);
}

.metric__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   PAGE INTRO (верхний блок страниц)
=========================== */
.page-intro {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f1a2e 0%, #142a45 50%, #0f1a2e 100%);
    color: #ffffff;
    text-align: center;
}

.page-intro__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.page-intro__subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
}

/* ========== FEATURE GRID (направления / преимущества) ========== */
.section__title {
    text-align: center;
    margin-bottom: 14px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 0.98rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 26, 46, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 161, 155, 0.35);
}

.feature-card__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.feature-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========== CTA ========== */
.cta {
    text-align: center;
}

.cta p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--text-light);
}

/* ========== REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FOOTER ========== */
.footer {
    background: #0b1423;
    color: rgba(255, 255, 255, 0.78);
    padding: 40px 0 26px;
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer__logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer__col h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer__col a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: #ffffff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    font-size: 0.85rem;
    text-align: center;
}

/* ========== FAQ ACCORDION ========== */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 26, 46, 0.06);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--primary);
}

.faq__icon {
    transition: transform var(--transition);
    color: var(--accent);
}

.faq__item.is-open .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer p {
    padding: 0 20px 18px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.gallery-grid__item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-grid__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.gallery-grid__item span {
    display: block;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-grid--partners .gallery-grid__item img {
    height: 120px;
    object-fit: contain;
    padding: 16px;
    background: var(--bg);
}

/* ========== TEAM ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 26, 46, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card__photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.team-card__role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.team-card h3 {
    margin-bottom: 6px;
}

.team-card p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== CONTACTS / FORM / MAP ========== */
.contacts-grid {
    margin-bottom: 48px;
}

.map-wrap {
    margin-top: 24px;
}

.map-wrap__frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    max-width: 520px;
    margin: 0 auto;
}

.contact-form__field {
    display: block;
    margin-bottom: 18px;
}

.contact-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 26, 46, 0.15);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form__status {
    min-height: 1.4em;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-form__status.is-success {
    color: var(--accent);
}

.contact-form__status.is-error {
    color: #c0392b;
}

.case-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.tilt-card {
    transition: transform 0.15s ease, box-shadow var(--transition);
    transform-style: preserve-3d;
}

.footer__privacy {
    display: inline-block;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer__privacy:hover {
    color: #fff;
}

.feature-card.tilt-card:hover {
    transform: none;
}

@media (max-width: 1000px) {
    .section { padding: 70px 0; }
    .section-alt { padding: 70px 0; }

    .hero { padding-top: 130px; padding-bottom: 80px; }

    .hero__cta { flex-direction: column; }
    
    .hero__subtitle { font-size: 0.8rem; }

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

    .burger { display: block; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        border-bottom: 1px solid rgba(15, 26, 46, 0.08);
        flex-direction: column;
        align-items: center;
        padding: 18px 0 22px;
        gap: 16px;
        display: none;
    }

    .nav.active { display: flex; }
}