/* ================================================================
   barefoot_comfort.kz — pages.css
   Информационные страницы: about, delivery, reviews, contacts
   ================================================================ */

/* ----------------------------------------------------------------
   Page Hero — общий для всех инфо-страниц
   ---------------------------------------------------------------- */
.page-hero {
    padding: 4.5rem 0 3.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero-eyebrow {
    display: inline-block;
    background: var(--accent-lt);
    color: var(--accent-dk);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: .75rem;
}
.page-hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 52ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   Общая секция
   ---------------------------------------------------------------- */
.info-section {
    padding: 5rem 0;
}
.info-section + .info-section {
    border-top: 1px solid var(--border);
}
.section-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: .55rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-lead {
    font-size: 1rem;
    color: var(--muted);
    max-width: 58ch;
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   Карточки преимуществ / фич
   ---------------------------------------------------------------- */
.feature-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.4rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}
.info-card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .9rem;
}
.info-card-title {
    font-size: .97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .35rem;
}
.info-card-text {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: none;
}

/* Карточка с фоном из беж-градиента */
.info-card-beige {
    background: linear-gradient(145deg, var(--bg) 0%, var(--beige) 100%);
    border-color: var(--beige-dk);
}

/* ----------------------------------------------------------------
   Двухколоночный layout (текст + карточки)
   ---------------------------------------------------------------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* ----------------------------------------------------------------
   Список с иконкой-галочкой
   ---------------------------------------------------------------- */
.check-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1.25rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .93rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}
.check-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--accent-lt);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 800;
    color: var(--accent-dk);
    margin-top: .1rem;
}

/* ----------------------------------------------------------------
   Шаги заказа
   ---------------------------------------------------------------- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    counter-reset: step-counter;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    counter-increment: step-counter;
}
.step-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: #1a1005;
    border-radius: 50%;
    font-size: .88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(214,181,109,.35);
    margin-top: .05rem;
}
.step-title {
    font-size: .97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .18rem;
}
.step-text {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: none;
}

/* ----------------------------------------------------------------
   Доставка: блок оплаты и доставки
   ---------------------------------------------------------------- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}
.payment-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-sm);
}
.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.payment-title { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .18rem; }
.payment-text  { font-size: .8rem; color: var(--muted); line-height: 1.5; max-width: none; }

/* Таблетка-бейдж */
.pill-tag {
    display: inline-block;
    background: var(--accent-lt);
    color: var(--accent-dk);
    font-size: .73rem;
    font-weight: 700;
    padding: .22rem .7rem;
    border-radius: 50px;
    border: 1px solid var(--beige-dk);
}

/* ----------------------------------------------------------------
   Отзывы
   ---------------------------------------------------------------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}
.review-card-pg {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.65rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.review-card-pg:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.12); }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.review-text-pg {
    font-size: .89rem;
    color: var(--text);
    line-height: 1.78;
    font-style: italic;
    flex: 1;
    max-width: none;
}
.review-author {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0;
}
.review-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.review-city { font-size: .73rem; color: var(--muted); }
.reviews-cta { text-align: center; margin-top: 2.5rem; }
.reviews-cta .btn { display: inline-flex; align-items: center; gap: .5rem; }

/* ----------------------------------------------------------------
   Trust-блок
   ---------------------------------------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.trust-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem 1rem;
}
.trust-icon { font-size: 2rem; margin-bottom: .65rem; line-height: 1; }
.trust-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.trust-text  { font-size: .78rem; color: var(--muted); margin-top: .25rem; line-height: 1.45; max-width: none; }

/* ----------------------------------------------------------------
   Контакты
   ---------------------------------------------------------------- */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}
.contacts-block {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.contact-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow .2s ease;
}
.contact-row:hover { box-shadow: var(--sh-sm); }
.contact-row-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: var(--accent-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-row-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .1rem; }
.contact-row-val   { font-size: .93rem; font-weight: 600; color: var(--text); }
.contact-row-val a { color: var(--text); transition: color .2s; }
.contact-row-val a:hover { color: var(--accent-dk); }

.contacts-btns {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .5rem;
}
.btn-wa-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .88rem 1.5rem;
    background: #22c55e;
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    border-radius: var(--r-md);
    transition: background .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 16px rgba(34,197,94,.25);
}
.btn-wa-full:hover { background: #16a34a; box-shadow: 0 8px 24px rgba(34,197,94,.35); }
.btn-inst-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .88rem 1.5rem;
    background: var(--white);
    color: var(--text);
    font-size: .97rem;
    font-weight: 700;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    transition: border-color .2s ease, background .2s ease;
}
.btn-inst-full:hover { border-color: var(--accent); background: var(--accent-lt); }

/* Стили .map-card определены в style.css и работают на всех страницах */

/* Карта — placeholder (резервный, если JS отключён или файл не подключён) */
.map-placeholder {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--beige) 0%, var(--accent-lt) 100%);
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--muted);
    text-align: center;
    padding: 2rem;
}
.map-placeholder-icon { font-size: 3.5rem; line-height: 1; opacity: .6; }
.map-placeholder h3   { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.map-placeholder p    { font-size: .84rem; max-width: 30ch; line-height: 1.55; margin: 0; }

@media (max-width: 600px) {
    .map-card        { min-height: 320px; }
    .map-placeholder { height: 320px; }
}

/* ----------------------------------------------------------------
   Placeholder-блок (вместо фото)
   ---------------------------------------------------------------- */
.visual-placeholder {
    border-radius: var(--r-xl);
    background: linear-gradient(145deg, var(--beige) 0%, var(--accent-lt) 100%);
    border: 1px solid var(--beige-dk);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    text-align: center;
    padding: 2.5rem;
    color: var(--muted);
}
.visual-placeholder-icon { font-size: 4.5rem; line-height: 1; opacity: .5; }

/* Фото-блок на странице about.php */
.about-page-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 400px;
    background: var(--beige);
    border: 1px solid var(--border);
    box-shadow: 0 6px 32px rgba(150,120,60,.10);
    display: flex;
    flex-direction: column;
}
.about-page-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    flex: 1;
}
.about-page-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(20,12,4,.60) 0%, transparent 100%);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 2.25rem 1.5rem .9rem;
    text-align: center;
}
/* Fallback если фото не загрузилось */
.about-page-visual--fallback {
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .about-page-visual { min-height: 280px; border-radius: 22px; }
    .about-page-img    { min-height: 280px; }
}

/* CTA-полоска внизу страниц */
.page-cta {
    background: linear-gradient(135deg, var(--beige) 0%, var(--accent-lt) 100%);
    border-top: 1px solid var(--beige-dk);
    padding: 4rem 0;
    text-align: center;
}
.page-cta h2 { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: .55rem; letter-spacing: -.025em; }
.page-cta p  { font-size: .97rem; color: var(--muted); margin-bottom: 1.75rem; max-width: 44ch; margin-inline: auto; }
.page-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------
   Адаптив
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .trust-grid      { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid    { grid-template-columns: repeat(2, 1fr); }
    .two-col         { gap: 2.5rem; }
    .contacts-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .info-section    { padding: 3.5rem 0; }
    .page-hero       { padding: 3rem 0 2.5rem; }
    .feature-grid-3  { grid-template-columns: repeat(2, 1fr); }
    .payment-grid    { grid-template-columns: 1fr; }
    .two-col         { grid-template-columns: 1fr; gap: 2rem; }
    .two-col-reverse { direction: ltr; }
}

@media (max-width: 560px) {
    .feature-grid-2  { grid-template-columns: 1fr; }
    .feature-grid-3  { grid-template-columns: 1fr; }
    .feature-grid-4  { grid-template-columns: 1fr; }
    .trust-grid      { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid    { grid-template-columns: 1fr; }
    .page-hero h1    { font-size: 1.75rem; }
    .section-title   { font-size: 1.4rem; }
}

/* ================================================================
   SVG Icon System — pages
   ================================================================ */

/* Info cards (contacts FAQ, about benefits) */
.info-card-icon {
    display: flex;
    align-items: center;
    line-height: 1;
}
.info-card-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--accent-dk);
    transition: transform .25s ease;
}
.info-card:hover .info-card-icon svg { transform: scale(1.08); }

/* Contact row icons */
.contact-row-icon {
    color: var(--accent-dk);
}
.contact-row-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.contact-row-icon--wa { background: #dcfce7 !important; color: #16a34a; }
.contact-row-icon--ig { background: #fce7f3 !important; color: #be185d; }

/* Payment card icons */
.payment-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-dk);
}
.payment-icon { display: flex; align-items: center; justify-content: center; }
