/* Inner pages in the homepage-v2 language. Scoped to body.pv2. */
body.pv2 {
  --pv-green: #003024;
  --pv-green-2: #0b4535;
  --pv-cream: #f1e7d4;
  --pv-paper: #f6f4f0;
  --pv-ink: #151a17;
  --pv-text: #4b544f;
  --pv-muted: #6b7570;
  --pv-line: #e7e3da;
  --pv-font: effra-cc, "Open Sans", Arial, sans-serif;
}
body.pv2 main h1::before, body.pv2 main h1::after, body.pv2 main h2::before, body.pv2 main h2::after,
body.pv2 main h3::before, body.pv2 main h3::after { display: none !important; content: none !important; }

/* ---------- headings & text ---------- */
body.pv2 .page-main h1 { margin: 0 0 18px !important; color: var(--pv-ink) !important; font-family: var(--pv-font) !important; font-size: 52px !important; font-weight: 600 !important; line-height: 1.02 !important; letter-spacing: -.03em !important; text-transform: none !important; }
body.pv2 .page-main h2 { margin: 0 0 24px !important; color: var(--pv-ink) !important; font-family: var(--pv-font) !important; font-size: 34px !important; font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: -.025em !important; text-transform: none !important; }
body.pv2 .page-main h3 { margin: 0 0 10px !important; color: var(--pv-ink) !important; font-family: var(--pv-font) !important; font-size: 20px !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -.01em !important; }
body.pv2 .page-main p { color: var(--pv-text); font-size: 15.5px; line-height: 1.7; }
body.pv2 .page-main .page-lead { color: var(--pv-text); font-size: 18px; line-height: 1.6; }
body.pv2 .page-section { margin: 0 0 72px !important; }
body.pv2 .page-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 4px; }

/* ---------- buttons ---------- */
body.pv2 .page-main .page-primary, body.pv2 .page-main .page-secondary { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px !important; border-radius: 999px !important; font-size: 15px !important; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
body.pv2 .page-main .page-primary { border: 0 !important; background: var(--pv-green) !important; color: #fff !important; }
body.pv2 .page-main .page-primary:hover { background: var(--pv-green-2) !important; }
body.pv2 .page-main .page-secondary { border: 1.5px solid #d9d3c6 !important; background: #fff !important; color: var(--pv-green) !important; }
body.pv2 .page-main .page-secondary:hover { border-color: var(--pv-green) !important; }
body.pv2 .page-main .page-link { color: var(--pv-green) !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: rgba(0,48,36,.3) !important; text-underline-offset: 4px; }
body.pv2 .page-main .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- photo hero (О нас, Школа бариста) ---------- */
body.pv2 .story-hero { position: relative; display: flex !important; align-items: center; min-height: 500px; margin: 0 0 72px !important; overflow: hidden; border-radius: 28px !important; background: #0d1a14 !important; isolation: isolate; }
body.pv2 .story-hero > img { position: absolute; inset: 0; z-index: -2; width: 100% !important; height: 100% !important; min-height: 0 !important; object-fit: cover; }
body.pv2 .story-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,20,13,.92) 0%, rgba(5,20,13,.78) 32%, rgba(5,20,13,.35) 58%, rgba(5,20,13,0) 78%); }
body.pv2 .story-hero-copy { max-width: 600px; padding: 64px !important; }
body.pv2 .story-hero h1 { color: #fff !important; font-size: 60px !important; }
body.pv2 .story-hero .page-lead { color: rgba(255,255,255,.8) !important; }
body.pv2 .story-hero .page-primary { background: var(--pv-cream) !important; color: var(--pv-green) !important; }
body.pv2 .story-hero .page-primary:hover { background: #fff !important; }
body.pv2 .story-hero .page-secondary { border-color: rgba(255,255,255,.5) !important; background: transparent !important; color: #fff !important; }
body.pv2 .story-hero .page-secondary:hover { border-color: #fff !important; background: rgba(255,255,255,.08) !important; }

/* ---------- tiles ---------- */
body.pv2 .page-tile, body.pv2 .course-card, body.pv2 .company-values article { padding: 28px !important; border: 0 !important; border-radius: 20px !important; background: var(--pv-paper) !important; box-shadow: none !important; }
body.pv2 .page-tile p, body.pv2 .course-card p { margin-bottom: 0; font-size: 15px; }
body.pv2 .tile-number { display: inline-block !important; width: auto !important; height: auto !important; margin: 0 0 18px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; color: #a39a88 !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .08em; line-height: 1 !important; }
body.pv2 .page-three-col, body.pv2 .course-days, body.pv2 .latte-steps, body.pv2 .buy-steps { gap: 16px !important; }

/* ---------- green band (CTA) ---------- */
body.pv2 .page-band { position: relative; margin: 0 0 72px !important; padding: 48px 56px !important; overflow: hidden; border: 0 !important; border-radius: 28px !important; background: var(--pv-green) !important; color: rgba(255,255,255,.78); isolation: isolate; }
body.pv2 .page-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(241,231,212,.12), transparent 60%); }
body.pv2 .page-band h2 { margin-bottom: 12px !important; color: #fff !important; }
body.pv2 .page-band h3 { color: #fff !important; }
body.pv2 .page-band p { max-width: 720px; color: rgba(255,255,255,.78) !important; }
body.pv2 .page-band .page-primary { background: var(--pv-cream) !important; color: var(--pv-green) !important; }
body.pv2 .page-band .page-primary:hover { background: #fff !important; }
body.pv2 .page-band .page-secondary { border-color: rgba(255,255,255,.45) !important; background: transparent !important; color: #fff !important; }
body.pv2 .page-band .page-secondary:hover { border-color: #fff !important; }
body.pv2 .page-band a:not(.page-primary):not(.page-secondary) { color: #fff !important; }
body.pv2 .about-contact-band, body.pv2 .buy-question { display: flex !important; align-items: center; justify-content: space-between; gap: 32px; }
body.pv2 .about-contact-band .page-actions, body.pv2 .buy-question .page-actions { flex: 0 0 auto; margin-top: 0; }

/* ---------- О нас ---------- */
body.pv2-about .page-two-col { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
body.pv2-about .page-two-col h2 { font-size: 40px !important; }
body.pv2-about .page-two-col p { font-size: 16.5px; }
body.pv2-about .page-three-col { margin-bottom: 72px !important; }
body.pv2-about .about-directions { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 16px; }
body.pv2-about .about-direction { display: flex !important; flex-direction: column; overflow: hidden; border: 0 !important; border-radius: 20px !important; background: var(--pv-paper) !important; text-decoration: none !important; transition: transform .25s; }
body.pv2-about .about-direction:hover { transform: translateY(-3px); }
body.pv2-about .about-direction-photo { height: auto !important; aspect-ratio: 4 / 3; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #e9e4da !important; border-radius: 0 !important; }
body.pv2-about .about-direction-photo img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
body.pv2-about .about-direction:hover .about-direction-photo img { transform: scale(1.05); }
body.pv2-about .about-direction > div:last-child { padding: 20px 22px 24px; }
body.pv2-about .about-direction > div:last-child > *:last-child { color: var(--pv-green); font-size: 14px; font-weight: 600; }
body.pv2-about .company-story { display: grid !important; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; padding: 0 !important; border: 0 !important; background: none !important; }
body.pv2-about .company-values { display: grid !important; gap: 12px; }
body.pv2-about .company-values article h3 { margin-bottom: 6px !important; }
body.pv2-about .company-values article p { margin: 0; font-size: 14.5px; }
body.pv2-about .company-brands { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 12px; }
body.pv2-about .company-brands a { display: flex !important; align-items: center; justify-content: center; height: 96px; padding: 18px !important; border: 1px solid var(--pv-line) !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; transition: border-color .2s; }
body.pv2-about .company-brands a:hover { border-color: var(--pv-green) !important; }
body.pv2-about .company-brands img { max-width: 100% !important; max-height: 40px !important; width: auto !important; height: auto !important; object-fit: contain; opacity: .62; transition: opacity .2s; }
body.pv2-about .company-brands a:hover img { opacity: 1; }

/* ---------- Школа бариста ---------- */
body.pv2-school .course-grid { gap: 16px !important; }
body.pv2-school .course-card:nth-child(2) { background: var(--pv-cream) !important; }
body.pv2-school .course-duration { display: inline-block; margin-bottom: 14px; color: var(--pv-green) !important; font-size: 13px !important; font-weight: 600; letter-spacing: .04em; }
body.pv2-school .course-card ul { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pv-line); list-style: none; }
body.pv2-school .course-card li { position: relative; padding-left: 18px; margin: 6px 0; color: var(--pv-text); font-size: 14.5px; }
body.pv2-school .course-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pv-green); }
body.pv2-school .page-facts span, body.pv2-school .page-facts li { border-radius: 999px !important; background: #fff !important; border: 0 !important; }
body.pv2-school .school-gallery { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 72px !important; }
body.pv2-school .school-gallery img { width: 100% !important; height: 380px !important; object-fit: cover; border-radius: 24px !important; }
body.pv2-school .trainer-section { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 0 !important; border: 0 !important; background: none !important; }
body.pv2-school .trainer-section img { width: 100% !important; height: 100% !important; max-height: 520px; object-fit: cover; border-radius: 24px !important; }
body.pv2-school .school-partners { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 12px; }
body.pv2-school .school-partners > div { display: flex !important; align-items: center; justify-content: center; height: 110px; padding: 18px !important; border: 1px solid var(--pv-line) !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; }
body.pv2-school .school-partners img { max-width: 100% !important; max-height: 60px !important; width: auto !important; height: auto !important; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
body.pv2-school .school-partners > div:hover img { filter: none; opacity: 1; }

/* ---------- Как купить ---------- */
body.pv2 .pv2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin: 0 0 32px; padding: 56px; border-radius: 28px; background: var(--pv-paper); }
body.pv2 .pv2-hero .page-lead { margin: 0; }
body.pv2 .pv2-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
body.pv2 .pv2-facts li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: #fff; }
body.pv2 .pv2-facts b { color: var(--pv-green); font-family: var(--pv-font); font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
body.pv2 .pv2-facts span { color: var(--pv-muted); font-size: 13.5px; line-height: 1.45; }
body.pv2-buy .buy-steps { margin-bottom: 64px !important; }
body.pv2-buy .help-layout { gap: 48px !important; }
body.pv2-buy .help-nav { position: sticky; top: 150px; align-self: start; padding: 8px !important; border: 0 !important; border-radius: 18px !important; background: var(--pv-paper) !important; }
body.pv2-buy .help-nav a { display: block; padding: 10px 14px !important; border-radius: 12px; color: var(--pv-text) !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s; }
body.pv2-buy .help-nav a:hover { background: #fff; color: var(--pv-green) !important; }
body.pv2-buy .help-content > section { margin-bottom: 56px; }
body.pv2-buy .help-content .page-tile { background: var(--pv-paper) !important; }
body.pv2-buy .help-content .page-band { margin: 0 !important; padding: 32px 36px !important; }
body.pv2-buy .help-content details { border-bottom: 1px solid var(--pv-line) !important; }
body.pv2-buy .help-content summary { padding: 18px 0 !important; color: var(--pv-ink) !important; font-size: 17px !important; font-weight: 600 !important; cursor: pointer; }

/* ---------- Акции ---------- */
body.pv2-sale .catalog-main .category-heading.pv2-sale-hero { position: relative; display: flex !important; align-items: center; justify-content: space-between; gap: 32px; min-height: 0; margin: 0 0 28px !important; padding: 48px 56px !important; overflow: hidden; border: 0 !important; border-radius: 28px !important; background: var(--pv-green) !important; isolation: isolate; }
body.pv2-sale .pv2-sale-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 140% at 100% 50%, rgba(200,69,44,.35), transparent 65%); }
body.pv2-sale .pv2-sale-hero h1 { margin: 0 0 12px !important; color: #fff !important; font-family: var(--pv-font) !important; font-size: 56px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: -.03em !important; }
body.pv2-sale .pv2-sale-hero .category-intro { max-width: 520px; margin: 0 !important; color: rgba(255,255,255,.78) !important; font-size: 17px !important; line-height: 1.55; }
body.pv2-sale .pv2-sale-hero #category-total { display: none !important; }
body.pv2-sale .pv2-sale-badge { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
body.pv2-sale .pv2-sale-badge b { color: var(--pv-cream); font-family: var(--pv-font); font-size: 96px; font-weight: 600; line-height: .9; letter-spacing: -.05em; }
body.pv2-sale .pv2-sale-badge span { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.45; }
body.pv2-sale .category-guide { border: 0 !important; border-radius: 24px !important; background: var(--pv-paper) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body.pv2-about .about-directions { grid-template-columns: 1fr 1fr; }
  body.pv2-about .company-brands { grid-template-columns: repeat(4, 1fr); }
  body.pv2-about .company-story, body.pv2-about .page-two-col, body.pv2-school .trainer-section { grid-template-columns: 1fr; gap: 28px; }
  body.pv2 .pv2-hero { grid-template-columns: 1fr; padding: 44px 40px; }
}
@media (max-width: 768px) {
  body.pv2 .page-main h1 { font-size: 36px !important; }
  body.pv2 .page-main h2, body.pv2-about .page-two-col h2 { font-size: 27px !important; }
  body.pv2 .page-main .page-lead { font-size: 16px; }
  body.pv2 .page-section { margin-bottom: 48px !important; }
  body.pv2 .story-hero { align-items: flex-end; min-height: 560px; margin-bottom: 48px !important; border-radius: 22px !important; }
  body.pv2 .story-hero::before { background: linear-gradient(0deg, rgba(5,20,13,.95) 0%, rgba(5,20,13,.82) 42%, rgba(5,20,13,.2) 72%, rgba(5,20,13,0) 100%); }
  body.pv2 .story-hero-copy { padding: 28px 22px !important; }
  body.pv2 .story-hero h1 { font-size: 38px !important; }
  body.pv2 .page-band { padding: 32px 22px !important; margin-bottom: 48px !important; border-radius: 22px !important; }
  body.pv2 .about-contact-band, body.pv2 .buy-question { flex-direction: column; align-items: flex-start; gap: 18px; }
  body.pv2 .page-tile, body.pv2 .course-card { padding: 22px !important; }
  body.pv2-about .about-directions { grid-template-columns: 1fr; }
  body.pv2-about .company-brands { grid-template-columns: repeat(2, 1fr); }
  body.pv2-school .school-gallery { grid-template-columns: 1fr; }
  body.pv2-school .school-gallery img { height: 240px !important; }
  body.pv2-school .school-partners { grid-template-columns: repeat(2, 1fr); }
  body.pv2 .pv2-hero { padding: 28px 22px; border-radius: 22px; gap: 24px; }
  body.pv2 .pv2-facts { grid-template-columns: 1fr; }
  body.pv2 .pv2-facts li { padding: 16px 18px; }
  body.pv2-buy .help-nav { position: static; }
  body.pv2-sale .catalog-main .category-heading.pv2-sale-hero { flex-direction: column; align-items: flex-start; padding: 32px 22px !important; border-radius: 22px !important; }
  body.pv2-sale .pv2-sale-hero h1 { font-size: 40px !important; }
  body.pv2-sale .pv2-sale-badge b { font-size: 64px; }
}

/* ---------- fixes after review ---------- */
body.pv2-about .about-direction-photo img { object-position: 82% 50%; }
body.pv2-school .school-partners img { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
body.pv2-school .school-partners > div:hover img { filter: none; }
/* Контакты */
body.pv2-contacts .page-main h1 { margin-bottom: 14px !important; }
body.pv2-contacts .contact-layout { margin: 32px 0 16px !important; }
body.pv2-contacts .contact-address { position: relative; overflow: hidden; border-radius: 28px !important; background: var(--pv-green) !important; isolation: isolate; }
body.pv2-contacts .contact-address::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(241,231,212,.12), transparent 60%); }
body.pv2-contacts .contact-address h2 { color: #fff !important; }
body.pv2-contacts .contact-address p { color: rgba(255,255,255,.8) !important; opacity: 1; }
body.pv2-contacts .contact-address .page-secondary { border: 0 !important; background: var(--pv-cream) !important; color: var(--pv-green) !important; }
body.pv2-contacts .contact-layout + .page-band { margin-bottom: 72px !important; padding: 32px 40px !important; }
body.pv2-contacts .contact-map-section iframe, body.pv2-contacts .contact-map-section [class*="map"] > * { border-radius: 24px; }
@media (max-width: 768px) {
  body.pv2 .story-hero { flex-direction: column !important; justify-content: flex-end !important; align-items: stretch !important; min-height: 520px; }
}
