/* ============================================================
   iStore — about.css  (страница About, body-only)
   Зависит от переменных theme.css.
   ============================================================ */

.ab-wrap { max-width: 1280px; margin: 0 auto; }

/* breadcrumb */
.ab-crumb {
    max-width: 1280px; margin: 0 auto;
    padding: 18px 24px 0;
    font-size: 12px; color: var(--muted);
}
.ab-crumb span.sep { padding: 0 6px; }
.ab-crumb span.cur { color: var(--text); }

/* hero */
.ab-hero {
    max-width: 1280px; margin: 0 auto;
    padding: 32px 24px 0;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.ab-hero__text { display: flex; flex-direction: column; gap: 16px; }
.ab-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.ab-hero__title { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.ab-hero__sub { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 520px; }
.ab-hero__media { aspect-ratio: 16/10; border-radius: 24px; }
.ab-hero__photo { width: 100%; height: auto; object-fit: cover; display: block; background: var(--surface-alt); }

/* stats */
.ab-stats {
    width: 100%; max-width: 1280px; margin: 0 auto;
    padding: 56px 24px 8px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center;
}
.ab-stat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 24px 12px; background: var(--surface);
    border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ab-stat__value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.ab-stat__label { font-size: 13px; color: var(--muted); }

/* section wrapper + title */
.ab-section { max-width: 1280px; margin: 0 auto; padding: 64px 24px 8px; }
.ab-section__title { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 36px; }
.ab-section__title--center { text-align: center; }

/* story — коротко: текст + вехи, рядом одно фото */
.ab-history { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ab-history__body .ab-section__title { margin-bottom: 16px; }
.ab-history__intro { margin: 0 0 28px; font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 560px; }
.ab-history__photo { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; display: block; background: var(--surface-alt); }
.ab-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.ab-timeline__item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.ab-timeline__year {
    font-size: 13px; font-weight: 600; color: var(--accent);
    padding: 6px 0; border-top: 2px solid var(--accent);
}
.ab-timeline__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ab-timeline__text { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* why choose (full-width band) */
.ab-why { width: 100%; background: var(--surface-alt); margin-top: 64px; padding: 64px 24px; }
.ab-why__inner { max-width: 1280px; margin: 0 auto; }
.ab-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ab-value { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ab-value__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent); color: var(--accent-text);
    display: flex; align-items: center; justify-content: center;
}
.ab-value__title { font-size: 17px; font-weight: 600; }
.ab-value__text { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* gallery — мозаика: большое фото слева, справа два маленьких и одно широкое */
.ab-gallery {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px; aspect-ratio: 2.1 / 1;
}
.ab-gallery__item { margin: 0; border-radius: 20px; overflow: hidden; background: var(--surface-alt); min-height: 0; }
.ab-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ab-gallery__item:hover img { transform: scale(1.03); }
.ab-gallery__item--main { grid-row: 1 / span 2; }
.ab-gallery__item--wide { grid-column: 2 / span 2; }
.ab-gallery__item--wide img { object-position: 50% 78%; }   /* в кадре iMac, а не только экран */

/* visit store */
.ab-store__card {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px;
    background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.07);
    border-radius: 20px; overflow: hidden;
}
.ab-store__media { aspect-ratio: 16/9; }
.ab-store__photo { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 30% 45%; display: block; }
.ab-store__info { padding: 28px 28px 28px 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ab-store__name { font-size: 19px; font-weight: 600; }
.ab-store__line { font-size: 14px; color: var(--muted); }
.ab-store__phone { font-size: 14px; color: var(--text); margin-top: 4px; }
.ab-store__btn {
    align-self: flex-start; padding: 10px 20px; border-radius: 980px;
    background: var(--surface-alt); font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 12px;
}
.ab-store__sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

/* CTA dark */
.ab-cta { max-width: 1280px; margin: 0 auto; padding: 64px 24px 72px; }
.ab-cta__card {
    background: #1d1d1f; color: #f5f5f7; border-radius: 28px; padding: 56px 40px;
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.ab-cta__title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; max-width: 520px; }
.ab-cta__text { font-size: 14px; color: #98989d; max-width: 460px; }
.ab-cta__btn {
    padding: 14px 32px; border-radius: 980px;
    background: var(--accent); color: var(--accent-text);
    font-weight: 500; font-size: 15px; cursor: pointer; margin-top: 8px;
}
.ab-cta__btn:hover { opacity: .85; }
.ab-store__btn, .ab-cta__btn { display: inline-block; text-decoration: none; }
.ab-store__btn { color: var(--text); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .ab-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .ab-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
    .ab-history { grid-template-columns: 1fr; gap: 28px; }
    .ab-history__photo { order: -1; }          /* фото сверху на мобилке */
    .ab-timeline__item { grid-template-columns: 58px 1fr; gap: 12px; }
    .ab-why__grid { grid-template-columns: 1fr; gap: 16px; }
    .ab-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; gap: 10px; }
    .ab-gallery__item { aspect-ratio: 4 / 3; border-radius: 16px; }
    .ab-gallery__item--main, .ab-gallery__item--wide { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .ab-store__card { grid-template-columns: 1fr; }
    .ab-store__info { padding: 0 24px 28px; }
    .ab-section { padding: 48px 20px 8px; }
    .ab-why { padding: 48px 20px; margin-top: 48px; }
    .ab-cta__card { padding: 40px 24px; }
    .ab-cta__title { font-size: 22px; }
    .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 40px; }
    .ab-stat__value { font-size: 28px; }
}