/* ==========================================================================
   birpaida.kz — главная. Чистый CSS, значения взяты из исходной темы Kadence.
   ========================================================================== */

:root {
    /* палитра Kadence */
    --p1: #ea7793;   /* розовый (акцент, кнопки) */
    --p2: #98adff;   /* голубой (hover, иконки) */
    --p3: #1A202C;
    --p4: #2D3748;
    --p5: #4A5568;
    --p6: #718096;
    --p7: #EDF2F7;
    --p8: #F7FAFC;
    --p9: #ffffff;

    --font-body: Lato, sans-serif;
    --font-heading: Comfortaa, cursive;

    --content-width: 1344px;
    --edge: 1.5rem;
    --gutter: 2rem;
    --sm: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--p8);
    color: var(--p4);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--p1); }
a:hover { color: var(--p2); }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.5;
    color: var(--p3);
}
h1 { font-size: 40px; }               /* класс has-larger-font-size */
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 22px; color: var(--p4); }
h5 { font-size: 20px; color: var(--p3); }
h6 { font-size: 18px; color: var(--p3); }
p  { margin: 0 0 1.5em; }

:focus-visible { outline: 2px solid var(--p2); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Кнопка
   -------------------------------------------------------------------------- */
.button {
    display: inline-block;
    padding: .4em 1em;
    border: 0;
    border-radius: 16px;
    background: var(--p1);
    color: var(--p9);
    font: inherit;
    font-size: 1.125rem;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 20px 5px rgba(234, 119, 147, .25);
    transition: all .2s ease;
}
.button:hover,
.button:focus {
    background: var(--p2);
    color: var(--p9);
    box-shadow: 0 15px 25px -7px rgba(152, 173, 255, .25);
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
#masthead {
    position: relative;
    z-index: 100;
    background: var(--p9);
}
.site-header-row {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--edge);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1280px;
    min-height: 80px;
    margin: 8px 0 -24px;
    padding: 8px;
    border-radius: 24px;
    background: var(--p7);
}
.brand { display: block; line-height: 0; }
.brand img { width: 64px; height: 64px; }

.main-navigation .menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
.main-navigation .menu-item a {
    display: block;
    padding: .6em .6em;
    color: var(--p5);
    text-decoration: none;
}
.main-navigation .menu-item a:hover { color: var(--p1); }
.main-navigation .menu-item.current a { color: var(--p3); }

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: .4em .6em;
    border: 0;
    background: none;
    color: var(--p5);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
}
.menu-toggle:hover { color: var(--p1); }

/* мобильное меню */
.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1100;
    width: min(300px, 85vw);
    padding: 3.5rem 0 1rem;
    overflow-y: auto;
    background: var(--p3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer ul { list-style: none; }
.mobile-drawer li a {
    display: block;
    padding: 1em 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: var(--p8);
    text-decoration: none;
}
.mobile-drawer li.current a,
.mobile-drawer li a:hover { color: var(--p1); }
.drawer-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    border: 0;
    background: none;
    color: var(--p8);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
body.drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, .4);
}

/* --------------------------------------------------------------------------
   Контейнер и строки
   -------------------------------------------------------------------------- */
.site-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--edge);
}
.row {
    display: grid;
    margin-bottom: 1.5rem;
}
.col { min-width: 0; }

/* ---- 1. Главный экран ---- */
.row-hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--gutter);
    align-content: center;
    min-height: 75vh;
    padding-top: var(--sm);
}
.col-hero-left {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    column-gap: 1rem;
    min-height: 67vh;
    padding: 5rem;
    border-radius: 32px;
    background-image: linear-gradient(135deg, rgba(234, 119, 147, .45) 0%, rgba(152, 173, 255, .45) 100%);
}
.col-hero-left > * { margin-top: 0; margin-bottom: 0; }
.hero-img { width: 100%; max-width: 283px; }
.col-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 67vh;
    padding: 3rem;
    border-radius: 32px;
    background-image: linear-gradient(220deg, rgba(234, 119, 147, .45) 0%, rgba(152, 173, 255, .45) 100%);
}
.buttons { display: flex; justify-content: center; }

/* ---- 2. Как работает акция ---- */
.row-how {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}
.col-how-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
    padding: var(--sm);
    border-radius: 32px;
    background: var(--p8);
}
.lottie { line-height: 0; }
.lottie dotlottie-player { display: block; width: 100%; }
.lottie-main { margin-top: -128px; }
.lottie-main + .how-title { margin-top: -96px; }

.col-how-right { display: flex; flex-direction: column; }
.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--sm) 0;
}
.step {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: .5rem;
    border-radius: 24px;
    text-align: center;
}
.step-pink { background: rgba(234, 119, 147, .05); }
.step-blue { background: rgba(152, 173, 255, .05); }
.step .lottie { margin: 0 auto; width: 100%; }
.step h4 { font-size: .9rem; }
.step p  { margin-bottom: 1em; }

/* ---- 3. Успехи ---- */
.row-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
}
.col-stats-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: var(--sm);
    border-radius: 32px;
    background:
        linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)),
        url("../img/third-1.jpg") center center / cover no-repeat,
        var(--p8);
}
.col-stats-title h2 { margin-bottom: 0; }
.col-stats-items { display: flex; flex-direction: column; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: center;
}
.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: .5rem;
    border-radius: 24px;
    text-align: center;
}
.stat-1 { background: #eef7ed; }
.stat-2 { background: rgba(234, 119, 147, .08); }
.stat-3 { background: rgba(234, 215, 119, .07); }
.stat-icon { display: flex; justify-content: center; line-height: 0; }
.stat-icon .icon { stroke-width: 1.5; }
.count-up-number {
    font-size: 50px;
    line-height: 1.2;
    text-align: center;
}
.count-up-title { margin: 0; text-align: center; }

/* ---- 4. Какие желания могут быть исполнены ---- */
.row-wishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gutter);
    padding: var(--sm) 0;
    border-radius: 32px;
    background-image: linear-gradient(135deg, var(--p8) 0%, rgba(234, 119, 147, .12) 100%);
}
.col-wishes-text { padding: var(--sm); }
.infobox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
}
.infobox-media {
    flex: none;
    margin-right: 20px;
    padding: 8px;
    border-radius: 16px;
    background: var(--p2);
    color: var(--p9);
    line-height: 0;
}
.infobox-text h4 { margin-bottom: .25em; }
.infobox-text p { margin: 0; font-size: .9rem; }

.col-wishes-images::after { content: ""; display: block; clear: both; }
.float-right { float: right; margin-left: 1em; }
.float-left  { float: left;  margin-right: 1em; }
figure img { border-radius: 24px; }   /* Kadence: скругление картинок в контенте */
.wish-img-gift   { max-width: 287px; }
.wish-img-moment { max-width: 316px; }

/* ---- 5. Какие желания нельзя загадать ---- */
.row-forbidden {
    grid-template-columns: minmax(0, calc(40% - 1rem)) minmax(0, calc(60% - 1rem));
    column-gap: var(--gutter);
    align-items: center;
    padding-top: var(--sm);
    border-radius: 32px;
    background-image: linear-gradient(135deg, var(--p8) 0%, rgba(152, 173, 255, .16) 100%);
}
.col-forbidden-img { display: flex; flex-direction: column; justify-content: center; }
.forbidden-img { max-width: 489px; }
.col-forbidden-text { padding: var(--sm); }
.icon-list { list-style: none; display: grid; row-gap: 5px; }
.icon-list li {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: .9rem;
}
.icon-list .icon { flex: none; color: #f60000; }

/* ---- 6. Как поддержать акцию + FAQ ---- */
.row-support {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--sm);
}
.support-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}
.support-card {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    padding: var(--sm);
    border-radius: 32px;
}
.support-blue   { background-image: radial-gradient(circle at center center, rgba(152, 173, 255, .25) 0%, var(--p8) 100%); }
.support-yellow { background-image: radial-gradient(circle at center center, rgba(253, 255, 152, .25) 0%, var(--p8) 100%); }
.support-violet { background-image: radial-gradient(circle at center center, rgba(255, 152, 252, .25) 0%, var(--p8) 100%); }
.support-card figure { max-width: 240px; margin: 0 auto; }

.faq-title { margin-top: 1.5rem; }

/* аккордеон */
.pane { margin-bottom: 10px; }
.pane-heading { margin: 0; font-size: inherit; line-height: inherit; }
.pane-header {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--p7);
    color: var(--p3);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.6;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
}
.pane-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}
.pane-header:hover,
.pane-header[aria-expanded="true"] {
    background: #fff;
    border-color: #d4d4d4;
}
.pane-header[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.pane-panel[hidden] { display: none; }
.pane-panel-inner {
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--p8);
}
.pane-panel-inner p { margin: 0; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--edge);
}
.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 8px;
    padding: 32px 32px 12px;
    border-radius: 32px;
    background: var(--p3);
    color: var(--p8);
}
.footer-col h2 { color: var(--p8); }
.footer-col h6 { color: var(--p9); }
.footer-col hr {
    height: 1px;
    margin: 1.5em 0;
    border: 0;
    background: #3f3f3f;
}
.footer-about,
.footer-note {
    font-size: .9rem;
    color: #707070;
}

/* --------------------------------------------------------------------------
   Кнопка «Наверх»
   -------------------------------------------------------------------------- */
#scroll-up {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    padding: .4em;
    border: 0;
    border-radius: 0;
    background: var(--p4);
    color: var(--p9);
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: all .2s ease;
}
#scroll-up.visible { opacity: 1; pointer-events: auto; transform: none; }
#scroll-up:hover { background: var(--p1); }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-navigation { display: none; }
    .menu-toggle { display: block; }
    .site-header-inner { justify-content: flex-start; }
    .col-hero-left { padding: 3rem; }
}

@media (max-width: 767px) {
    .site-container,
    .site-header-row,
    .site-footer { padding-left: 1rem; padding-right: 1rem; }

    .row-hero,
    .row-how,
    .row-stats,
    .row-wishes,
    .row-forbidden,
    .stats,
    .steps,
    .support-cards,
    .site-footer-inner { grid-template-columns: minmax(0, 1fr); }

    .row-hero { min-height: 0; gap: 1rem; }
    .col-hero-left,
    .col-hero-right { min-height: 0; padding: 2rem 1.5rem; }
    .hero-img { margin: 1rem auto 0; }
    h1 { font-size: 32px; }

    .col-how-left { min-height: 0; }
    .steps { row-gap: .5rem; }
    .stats { gap: 1rem; }
    .col-stats-title { margin-bottom: 1rem; }

    .row-wishes,
    .row-forbidden { row-gap: 1rem; }
    .forbidden-img { margin: 0 auto; }

    .support-cards { gap: 1rem; }
    .support-card { min-height: 0; }

    .site-footer-inner { padding: 24px 20px 8px; }
    #scroll-up { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
