/* ==========================================================================
   japmed.ru — дизайн-система по макету (Claude Design handoff)
   ========================================================================== */

:root {
    --bg: oklch(98% 0.004 75);
    --bg-alt: oklch(96% 0.006 80);
    --surface: oklch(99% 0.002 75);
    --border: oklch(89% 0.006 75);
    --text: oklch(23% 0.008 75);
    --muted: oklch(50% 0.01 75);
    --accent: oklch(53% 0.19 27);
    --accent-dark: oklch(45% 0.19 27);
    --accent-soft: oklch(95% 0.035 27);
    --green: oklch(50% 0.12 150);
    --green-soft: oklch(94% 0.05 150);

    --sans: 'Golos Text', 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(200, 40, 40, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(200, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 40, 40, 0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes driftSun {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -16px) rotate(8deg); }
}

@keyframes fadeUp404 {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo__mark {
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 0 60% 0 60%;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.logo__text-col {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo__text {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3px;
    color: var(--text);
}

.logo__accent {
    color: var(--accent);
}

.logo__url {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav a:hover {
    color: var(--text);
}

.nav a.is-active {
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-cta {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    gap: 28px;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.mobile-nav a {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.mobile-phone {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Common text elements ---------- */

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

h1, h2, h3 {
    margin: 0;
    color: var(--text);
}

.h1 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
}

.h2 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: -0.4px;
}

.lead {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 480px;
    margin: 0 0 32px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    padding: 15px 28px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
}

.btn--primary {
    color: #fff;
    background: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn--secondary {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--sm {
    font-size: 13.5px;
    padding: 9px 16px;
}

.btn--ghost-sm {
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 16px;
    text-decoration: none;
}

.btn--ghost-sm:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Hero (index) ---------- */

.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 48px 96px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero__text {
    flex: 1;
}

.hero__btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__img-outer {
    position: relative;
    flex: 0 0 420px;
    width: 420px;
}

.tilt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    transition: transform 0.15s ease-out;
    box-shadow: 0 30px 60px -30px rgba(30, 20, 10, 0.25);
}

.tilt-card img {
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

.float-badge {
    position: absolute;
    bottom: 8px;
    left: -18px;
    background: var(--text);
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    animation: floatY 4s ease-in-out infinite;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
}

/* ---------- Badges row ---------- */

.badges-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 48px 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.badge-item__icon {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 48px 96px;
}

.section-head {
    margin-bottom: 40px;
    max-width: 640px;
}

.page-head {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 48px 8px;
}

.page-head .lead {
    max-width: 620px;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 48px 0;
    display: flex;
    gap: 8px;
    font-family: var(--sans);
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb__sep {
    color: var(--border);
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Product cards ---------- */

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card__img-wrap {
    background: var(--bg-alt);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__img-wrap img {
    max-width: 78%;
    max-height: 180px;
    transition: transform 0.15s ease-out;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.15));
}

.product-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.product-card__top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-card__title {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
}

.product-card__jp {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.pill-instock {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-soft);
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.product-card__desc {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

.product-card__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.price {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.product-card__btn-row {
    display: flex;
    gap: 10px;
}

/* ---------- Delivery / stock sections ---------- */

.delivery-section {
    background: var(--bg-alt);
}

.delivery-section--dark {
    background: var(--text);
}

.delivery-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.stock-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.delivery-section--dark .stock-item {
    color: #fff;
    font-family: var(--sans);
    font-size: 14.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

.delivery-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.delivery-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.delivery-section--dark .delivery-row {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.delivery-label {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.delivery-section--dark .delivery-label {
    color: #fff;
}

.delivery-value {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    text-align: right;
}

.delivery-section--dark .delivery-value {
    color: rgba(255, 255, 255, 0.65);
}

.cross-sell-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    margin-top: 8px;
}

.cross-sell-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.cross-sell-name {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.cross-sell-price {
    font-family: var(--mono);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.cross-sell-arrow {
    margin-left: auto;
    color: #fff;
    font-size: 18px;
}

/* ---------- Steps ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.step-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.step-title {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.step-desc {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--text);
}

.cta-band__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-band__heading {
    font-family: var(--sans);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    max-width: 460px;
}

.cta-band__btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-band__phone-btn {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
}

.cta-band__tg-btn {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
}

/* ---------- Product detail page ---------- */

.product-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 48px 88px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.product-hero__img-outer {
    flex: 0 0 420px;
    width: 420px;
}

.gallery-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb {
    flex: 1;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.product-hero__text {
    flex: 1;
}

.product-hero__title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 46px;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jp-title {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.product-hero__lead {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 480px;
    margin: 14px 0 24px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-big {
    font-family: var(--mono);
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
}

.pill-instock--lg {
    font-size: 11.5px;
    padding: 6px 12px;
}

.badges-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- Info cards ---------- */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
}

.info-card h3 {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
}

.cert-block {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.cert-block h3 {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.cert-block p {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 420px;
    margin: 0;
}

.cert-docs-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.cert-doc {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 48px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__col-title {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--muted);
    text-transform: uppercase;
}

.footer__col a {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    text-decoration: none;
}

.footer__col a:hover {
    color: var(--accent);
}

.footer__disclaimer {
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 380px;
    margin: 0;
}

.footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 40px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom a {
    color: var(--muted);
    text-decoration: underline;
}

/* ---------- Modal ---------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 15, 10, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 22px;
    max-width: 440px;
    width: 100%;
    padding: 36px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
}

.modal-card h3 {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

.modal-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form label,
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.modal-form input,
.modal-form select,
.modal-form textarea,
.contact-form input,
.contact-form textarea {
    font-family: var(--sans);
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    outline: none;
    color: var(--text);
    background: #fff;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.modal-form textarea,
.contact-form textarea {
    min-height: 70px;
    resize: vertical;
}

.contact-form textarea {
    min-height: 110px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* .modal-form label / .contact-form label force flex-direction: column
   (higher specificity than .consent-row alone) — override it back to a row
   here so the checkbox sits next to its text instead of stacking above it. */
.modal-form .consent-row,
.contact-form .consent-row {
    flex-direction: row;
}

.consent-row input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.consent-row span {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.modal-submit {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    padding: 15px 24px;
    cursor: pointer;
    margin-top: 4px;
    transition: background var(--transition);
}

.modal-submit:hover {
    background: var(--accent-dark);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* [hidden] is an author-stylesheet override too: without this, the
   display:flex below always wins over the browser's default [hidden]{display:none},
   so the "thanks" panel would show up even before the form is submitted. */
.modal-thanks[hidden],
.form-thanks[hidden] {
    display: none;
}

.modal-thanks {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
}

.modal-thanks__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-thanks h3 {
    font-size: 20px;
    margin: 0;
}

.modal-thanks p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 12px;
}

.form-error {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--accent-dark);
    display: none;
}

.form-error.is-visible {
    display: block;
}

/* ---------- Contacts page ---------- */

.contacts-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
}

.contact-cards-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card__title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.contact-card__sub {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.contact-form-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

.contact-form-col h2 {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}

.form-thanks {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
}

.form-thanks__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-thanks h3 {
    font-size: 22px;
    margin: 0;
}

.form-thanks p {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* ---------- 404 page ---------- */

.notfound-hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px;
    min-height: calc(100vh - 80px);
}

.notfound-sun {
    position: absolute;
    top: 14%;
    right: 18%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    animation: driftSun 6s ease-in-out infinite;
    opacity: 0.7;
}

.notfound-content {
    position: relative;
    text-align: center;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeUp404 0.8s ease;
}

.notfound-code {
    font-family: var(--mono);
    font-size: 96px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -2px;
}

.notfound-lead {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.notfound-btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.notfound-phone {
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    margin-top: 8px;
}

/* ---------- Prose (privacy policy) ---------- */

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 48px 96px;
}

.prose h1 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 38px;
    letter-spacing: -0.4px;
    margin: 0 0 24px;
}

.prose h2 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 22px;
    margin: 36px 0 12px;
}

.prose p,
.prose li {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.prose ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 16px;
}

.prose a {
    color: var(--accent);
}

@media (max-width: 1040px) {
    .prose {
        padding: 40px 20px 64px;
    }
}

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive (breakpoint 1040px, per design) ---------- */

@media (max-width: 1040px) {
    .container,
    .header__inner,
    .hero,
    .badges-row,
    .section,
    .page-head,
    .breadcrumb,
    .delivery-inner,
    .cta-band__inner,
    .product-hero,
    .info-section,
    .footer__inner,
    .footer__bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header__inner {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav {
        display: none;
    }

    .header__phone {
        display: none;
    }

    /* Header CTA moves into the mobile menu below; keeping it in the
       header row alongside the burger overflowed narrow viewports
       and caused a few pixels of horizontal scroll. */
    .header__right > .btn-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
        padding-top: 48px;
        padding-bottom: 40px;
        gap: 40px;
    }

    .hero__img-outer,
    .product-hero__img-outer {
        width: 100%;
        flex: none;
    }

    .h1,
    .product-hero__title {
        font-size: 34px;
    }

    .h2 {
        font-size: 26px;
    }

    .badges-row {
        gap: 14px;
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .products-grid,
    .steps-grid,
    .info-grid,
    .delivery-inner,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band__heading {
        font-size: 24px;
    }

    .product-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 20px 48px;
        gap: 36px;
    }

    .product-hero__title {
        font-size: 34px;
    }

    .cert-block {
        flex-direction: column;
    }

    .cert-docs-row {
        min-width: auto;
    }
}

@media (max-width: 900px) {
    .notfound-code {
        font-size: 64px;
    }

    .notfound-content h1 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
