/* ============================================
   ROOT / БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */
:root {
    --background: #FBFBFD;
    --text: #1D1D1F;
    --secondary: #6E6E73;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    padding-top: 88px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.hero {
    padding-top: 30px;
}

h1 {
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 0 25px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 40px;
    font-weight: 600;
}

h3 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 35px;
    font-weight: 600;
}

p {
    font-size: 19px;
    line-height: 1.65;
    color: var(--secondary);
    margin: 0 0 28px;
    font-weight: 400;
}

.block {
    margin-top: 160px;
    position: relative;
}

/* Убираем разделитель у первого блока (второй <section> в .container) */
.block:nth-of-type(2)::before {
    display: none;
}

.block::before {
    content: "";
    position: absolute;
    top: -85px;
    left: 0;
    width: 200px;
    height: 1px;
    background: #D2D2D7;
}

/* ===== КНОПКИ (общий стиль) ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 16px 28px;
    min-width: 120px;
    background: linear-gradient(to bottom, rgba(153, 53, 240, 0.92), rgba(123, 19, 213, 0.92));
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

.button:hover {
    background: linear-gradient(to bottom, rgba(153, 53, 240, 0.95), rgba(123, 19, 213, 0.95));
    transform: translateY(-2px);
}

blockquote {
    margin: 35px 0;
    font-size: 26px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.reveal {
    opacity: 0;
    transform: translateY(55px);
    transition:
        opacity .95s cubic-bezier(.22, .61, .36, 1),
        transform .95s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ВЕРХНИЙ БЛОК
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, rgba(90, 25, 143, 0.92), rgba(81, 41, 156, 0.92));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 44px;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}
.logo-icon:hover {
    opacity: 1;
}
.logo-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.mobile-nav.open {
    max-height: 360px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 20px 24px 28px;
    max-width: 720px;
    margin: 0 auto;
}

.mobile-nav-list li {
    margin-bottom: 6px;
}
.mobile-nav-list li:last-child {
    margin-bottom: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: opacity 0.2s ease;
}
.mobile-nav-list a:hover {
    opacity: 0.65;
}
.mobile-nav-list li:last-child a {
    border-bottom: none;
}

/* ============================================
   НИЖНИЙ ПОЛУПРОЗРАЧНЫЙ БЛОК
   ============================================ */
.sticky-bar {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 998;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 44px;
    display: flex;
    align-items: center;
}

.sticky-bar-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.sticky-label {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--text);
}

/* ============================================
   ФОТО
   ============================================ */
.hero-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    aspect-ratio: 16 / 9;
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    background: #f5f5f7;
    padding: 28px 0 32px;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-line {
    width: 100%;
}

.footer-copy {
    font-size: 13px;
    font-weight: 400;
    color: var(--secondary);
    letter-spacing: 0.2px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #d2d2d7;
}

.footer-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-link:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    max-width: 580px;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 8px;
}
.modal-close:hover {
    color: var(--text);
}

.modal-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}
.modal-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 600px) {
    body {
        padding-top: 88px;
    }

    .container {
        padding: 45px 22px 80px;
    }

    .hero {
        padding-top: 20px;
        /* text-align не задаём, чтобы текст был слева */
    }

    h1 {
        font-size: 42px;
    }
    h2 {
        font-size: 27px;
    }
    h3 {
        font-size: 26px;
    }
    p {
        font-size: 18px;
        line-height: 1.6;
    }
    .block {
        margin-top: 110px;
        /* text-align не задаём */
    }
    .block::before {
        top: -70px;
        width: 150px;
    }

    /* ===== КНОПКИ НА МОБИЛЬНЫХ: центрируем через блок ===== */
    .button {
        display: block;              /* блочный для центрирования через margin */
        width: fit-content;          /* ширина по содержимому */
        max-width: 100%;
        min-width: unset;
        padding: 16px 24px;
        font-size: 16px;
        margin: 20px auto 0 auto;    /* центрирование */
        transition: none;
        white-space: nowrap;
    }
    .button:hover {
        transform: none;
        background: linear-gradient(to bottom, rgba(153, 53, 240, 0.92), rgba(123, 19, 213, 0.92));
    }

    blockquote {
        font-size: 22px;
    }

    .top-bar {
        height: 40px;
    }
    .sticky-bar {
        top: 40px;
        height: 40px;
    }
    .mobile-nav {
        top: 40px;
    }
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }

    .hamburger {
        width: 24px;
        height: 17px;
    }
    .hamburger-line {
        height: 1.8px;
    }
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7.6px) rotate(45deg);
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7.6px) rotate(-45deg);
    }

    .sticky-label {
        font-size: 15px;
    }
    .mobile-nav-list a {
        font-size: 19px;
        padding: 8px 0;
    }
    .mobile-nav-list {
        padding: 16px 20px 22px;
    }

    .footer {
        padding: 20px 0 24px;
    }
    .footer-copy,
    .footer-link {
        font-size: 12px;
    }
    .footer-inner {
        gap: 10px;
    }
    .modal-window {
        padding: 32px 20px 24px;
    }
}

@media (max-width: 400px) {
    .top-bar {
        height: 36px;
    }
    .sticky-bar {
        top: 36px;
        height: 36px;
    }
    .mobile-nav {
        top: 36px;
    }
    body {
        padding-top: 72px;
    }
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .hamburger {
        width: 20px;
        height: 14px;
    }
    .hamburger-line {
        height: 1.5px;
    }
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(6.25px) rotate(45deg);
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-6.25px) rotate(-45deg);
    }

    .sticky-label {
        font-size: 13px;
    }
}