/* ===== ОБЩИЕ СБРОСЫ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: #000000;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== БЛОК 1: ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
    height: 65px;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.7);
}

.header__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип УБРАН */

.header__nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__nav a {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px; /* уменьшен на 45% (было ~36px) */
    font-weight: 500;
    color: #222222;
    transition: color 0.2s ease;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.header__nav a.active {
    color: #1771f1;
    border-bottom-color: #1771f1;
}

.header__nav a:hover {
    color: #4a69ff;
}

.header__socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header__socials a {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.header__socials a:hover {
    opacity: 0.6;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #222;
    transition: 0.3s;
}

/* ===== БЛОК 2: HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero-bg.jpg') center 40% / cover no-repeat;
    color: #000;
    padding: 75px 20px 105px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* затемнение 40% */
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff; /* текст белый */
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 78px; /* уменьшен на 15% (было 92px) */
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px; /* уменьшен на 15% (было 22px) */
    color: #ffffff;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero__desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px; /* уменьшен на 15% (было 22px) */
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* ===== БЛОКИ 3-11 ===== */
.section {
    padding: 80px 0;
}

.section--white {
    background: #ffffff;
}

.section--beige {
    background: #f2efea;
}

.section--gray {
    background: #f2f2f2;
}

.section--final {
    position: relative;
    background: url('images/final-bg.jpg') 70% 54% / cover no-repeat;
    color: #000;
    padding: 100px 0; /* увеличен отступ, чтобы блок был выше */
    min-height: 60vh;
}

.section--final .section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
}

.section--final .container {
    position: relative;
    z-index: 2;
}

.section__title {
    font-family: 'Inter', Arial, sans-serif;
    color: #000;
    text-align: center;
}

.section__title--small {
    font-size: 22px;
    font-weight: 600;
}

.section__title--medium {
    font-size: 32px;
    font-weight: 700;
}

.section__title--large {
    font-size: 42px;
    font-weight: 600;
}

.section__title--left {
    text-align: left;
}

.section__title--white {
    color: #000;
}

.section__subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
}

.section__desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 24px; /* увеличен размер текста */
    color: #000;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.section__desc--white {
    color: #000;
}

/* ===== БЛОК 3: "Почему современный человек..." ===== */
#why .section__title {
    margin-bottom: 30px;
}

.text-block {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    color: #000;
    line-height: 1.7;
}

.text-block--center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block--left {
    text-align: left;
}

/* ===== БЛОК 4: "Эпистоизм — практическое решение" ===== */
.grid {
    display: grid;
    gap: 40px;
}

.grid--2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.grid__text {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    color: #000;
}

.grid__text .section__title {
    margin-bottom: 15px;
}

.list {
    list-style: none;
    margin: 15px 0;
}

.list li {
    margin-bottom: 8px;
}

.italic {
    font-style: italic;
    color: #666;
}

.grid__image img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: auto;
}

/* ===== БЛОК 5: Четыре опоры ===== */
#core .section__title {
    margin-bottom: 10px;
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.card h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.card p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    color: #555;
}

/* ===== БЛОК 6: "Баланс вместо крайностей" ===== */
#balance .section__title {
    margin-bottom: 30px;
}

#balance .text-block {
    line-height: 1.55;
}

/* ===== БЛОК 7: "Где это работает" ===== */
#practice .section__title {
    margin-bottom: 40px;
}

.list--lined {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: left; /* выравнивание по левому краю */
}

.list--lined li {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    color: #000;
    padding: 14px 0;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center; /* выравнивание по центру по вертикали */
    gap: 12px; /* отступ между эмодзи и текстом */
}

.list--lined li:last-child {
    border-bottom: none;
}

.list--lined li strong {
    min-width: 100px; /* фиксированная ширина для слова */
}

/* ===== БЛОК 8: Галерея ===== */
.slider {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.slider__track {
    display: flex; /* ЭТО ГЛАВНОЕ — заставляет слайды стоять в ряд */
    transition: transform 0.4s ease;
}

.slider__slide {
    min-width: 100%; /* Каждый слайд занимает всю ширину контейнера */
    aspect-ratio: 16 / 10;
}

.slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.slider__slide img:hover {
    opacity: 0.9;
}

.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(232, 232, 232, 0.9);
    border: 1px solid #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: #000;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider__arrow:hover {
    background: #000;
    color: #fff;
}

.slider__arrow--prev {
    left: 16px;
}

.slider__arrow--next {
    right: 16px;
}

.slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider__dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #c7c7c7;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider__dots button.active {
    background: #000;
    transform: scale(1.2);
}

/* ===== БЛОК 9: "Это не идея. Это образ жизни" ===== */
.section--final {
    position: relative;
    background: #f2efea url('images/final-bg.jpg') 70% 54% / cover no-repeat;
    color: #000;
    padding: 95px 0; /* увеличенные отступы сверху и снизу */
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.section--final .section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
}

.section--final .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section--final .section__title {
    font-family: 'Playfair Display', serif; /* как на Tilda */
    font-size: 42px;
    font-weight: 400;
    color: #000;
    margin-bottom: 20px;
}

.section--final .section__desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    color: #000;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ===== СТРЕЛКА В БЛОКЕ 9 ===== */
.final__arrow {
    text-align: center;
    margin-top: 30px;
}

.arrow-link {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.arrow-link:hover {
    opacity: 0.7;
    transform: translateX(5px);
}


/* ===== БЛОК 10: Контакты ===== */
#contacts .section__title {
    margin-bottom: 10px;
}

#contacts {
    padding: 100px 0; /* увеличен отступ, чтобы блок был выше */
}

.contacts {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contacts p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    color: #000;
    margin-bottom: 12px;
}

.contacts a {
    color: #000;
    transition: opacity 0.2s;
}

.contacts a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links--dark a {
    color: #000;
}

.social-links--footer a {
    color: #fff;
}

.link--underline-dark {
    color: #000;
    border-bottom: 1px solid #000;
}

/* ===== БЛОК 11: Подвал ===== */
.footer {
    background: #111111;
    color: #ffffff;
    padding: 15px 0 0;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px; /* уменьшен на 20% (было 20px) */
    color: #ffffff;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--light {
    background: #f2f2f2;
    color: #111111;
}

.btn--light:hover {
    background: #4f3737;
    color: #ffffff;
    transform: scale(1.02);
}

.btn--white {
    background: #ffffff;
    color: #111111;
}

.btn--white:hover {
    background: #4f3733;
    color: #ffffff;
    transform: scale(1.02);
}

.text-center {
    text-align: center;
    margin-top: 30px;
}
/* ===== МОДАЛЬНОЕ ОКНО (ПОЛНЫЙ ЭКРАН) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 48px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.modal__close:hover,
.modal__close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ===== АДАПТИВ ДЛЯ МОДАЛКИ ===== */
@media (max-width: 640px) {
    .modal__content {
        max-width: 95%;
        max-height: 80%;
    }
    .modal__close {
        font-size: 36px;
        top: 15px;
        right: 25px;
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 44px;
    }

    .hero__subtitle,
    .hero__desc {
        font-size: 16px;
    }

    .section__title--large {
        font-size: 32px;
    }

    .section__title--medium {
        font-size: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .list--lined li {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .burger {
        display: flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #eee;
    }

    .header__nav.open {
        display: block;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header__socials {
        display: none;
    }

    .grid--4 {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px 12px;
    }

    .card img {
        width: 56px;
        height: 56px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__desc {
        font-size: 14px;
    }

    .section__title--large {
        font-size: 28px;
    }

    .section__title--medium {
        font-size: 24px;
    }

    .section__title--small {
        font-size: 18px;
    }

    .text-block {
        font-size: 16px;
    }

    .list--lined li {
        font-size: 14px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .section--final {
        padding: 60px 0;
        min-height: 40vh;
    }

    #contacts {
        padding: 60px 0;
    }

    .section__desc {
        font-size: 18px;
    }
}