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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #f5f5f5;
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== SECTION TITLE ===== */
.section__title {
    font-size: 2rem;
    line-height: 1.2;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
}

.btn--primary {
    background-color: #e94560;
    color: #f5f5f5;
    border-color: #e94560;
}

.btn--primary:hover {
    background-color: #d63850;
    border-color: #d63850;
}

.btn--outline {
    background-color: transparent;
    color: #ffd700;
    border-color: #ffd700;
}

.btn--outline:hover {
    background-color: #ffd700;
    color: #1a1a2e;
}

/* ===== HEADER ===== */
.header {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header__title {
    font-size: 1.5rem;
    line-height: 1.2;
    color: #ffd700;
    font-weight: 700;
}

.header__tagline {
    font-size: 0.875rem;
    color: #a0a0b0;
    margin-top: 0.2rem;
}

/* ===== HERO ===== */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(233, 69, 96, 0.08) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.hero__heading {
    font-size: 3rem;
    line-height: 1.2;
    color: #f5f5f5;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero__subheading {
    font-size: 1.125rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
}

.hero__quote {
    font-size: 1.125rem;
    color: #ffd700;
    font-style: italic;
    border-left: 4px solid #e94560;
    padding: 1rem 1.5rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

.hero__cta {
    font-size: 1.125rem;
}

/* ===== МАНИФЕСТ ===== */
.manifest {
    padding: 4rem 0;
    background-color: #16213e;
}

.manifest__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.manifest__epigraph {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #ffd700;
    font-weight: 700;
    text-align: center;
}

.manifest__text {
    max-width: 750px;
}

.manifest__text p {
    margin-bottom: 1.2rem;
    font-size: 1.0625rem;
    color: #f5f5f5;
}

.manifest__text p:last-child {
    margin-bottom: 0;
}

.manifest__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem;
    border: 2px dashed rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    background-color: rgba(255, 215, 0, 0.03);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.manifest__placeholder:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background-color: rgba(255, 215, 0, 0.05);
}

.manifest__icon {
    display: block;
}

.manifest__caption {
    font-size: 0.875rem;
    color: #a0a0b0;
    text-align: center;
}

/* ===== ТРИ СТОЛПА ===== */
.pillars {
    padding: 4rem 0;
    position: relative;
}

.pillars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.2), transparent);
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background-color: #16213e;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #ffd700, #e94560);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 215, 0, 0.15);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pillar-card__title {
    font-size: 1.35rem;
    line-height: 1.2;
    color: #ffd700;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.pillar-card__text {
    font-size: 1rem;
    color: #a0a0b0;
    line-height: 1.6;
}

/* ===== ЦИТАТА ДНЯ ===== */
.quote-day {
    padding: 4rem 0;
    background-color: #16213e;
    position: relative;
}

.quote-day::before {
    content: '„';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.1);
    line-height: 1;
    font-family: Georgia, serif;
}

.quote-day::after {
    content: '“';
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.1);
    line-height: 1;
    font-family: Georgia, serif;
}

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

.quote-day__block {
    font-size: 1.25rem;
    color: #ffd700;
    font-style: italic;
    line-height: 1.6;
    padding: 2rem 2.5rem;
    border-left: 4px solid #e94560;
    border-right: 4px solid #e94560;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.quote-day__block.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.quote-day__block.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* ===== ПРОВЕРЬ СЕБЯ ===== */
.test {
    padding: 4rem 0;
    text-align: center;
}

.test__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test__description {
    font-size: 1.0625rem;
    color: #a0a0b0;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.test__btn {
    font-size: 1.125rem;
    padding: 0.875rem 2.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.25);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.test__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.35);
}

.test__btn:active {
    transform: translateY(0);
}

.test__output {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #ffd700;
    min-height: 3em;
    transition: opacity 0.4s ease;
    background-color: #16213e;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 1.25rem 1.75rem;
    max-width: 650px;
    width: 100%;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(22, 33, 62, 0.4);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.875rem;
    color: #a0a0b0;
}

.footer__link {
    font-size: 0.875rem;
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffd700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.footer__link:hover {
    color: #ffd700;
}

.footer__link:hover::after {
    transform: scaleX(1);
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ (для Intersection Observer) ===== */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Tablet: 768–1023px */
@media (max-width: 1023px) {
    .pillars__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manifest__epigraph {
        font-size: 2rem;
    }

    .hero__heading {
        font-size: 2.5rem;
    }
}

/* Mobile: <768px */
@media (max-width: 767px) {
    .header__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero__heading {
        font-size: 2rem;
    }

    .hero__subheading {
        font-size: 1rem;
    }

    .hero__quote {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .manifest__epigraph {
        font-size: 1.75rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

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

    .quote-day__block {
        font-size: 1rem;
        padding: 1.25rem 1rem;
        border-left-width: 3px;
        border-right-width: 3px;
    }

    .test__btn {
        font-size: 1rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile small: <480px */
@media (max-width: 479px) {
    .container {
        padding: 0 1rem;
    }

    .hero__heading {
        font-size: 1.65rem;
    }
}
