/*
Theme Name: Perfekt SAN
Theme URI: https://san.perfekt.com.ua/
Author: Perfekt
Description: Cinematic landing page for Perfekt plastic mixers.
Version: 1.0.2
Text Domain: perfekt-san
*/

:root {
    --ink: #101010;
    --ink-soft: #181a1b;
    --graphite: #25292b;
    --line: #3c4143;
    --bone: #fffdf9;
    --muted: #a5adb0;
    --lime: #c8ff00;
    --lime-soft: #e8ff91;
    --paper: #f1f3f1;
    --dark-on-paper: #171918;
    --radius: 18px;
    --page: min(1440px, calc(100vw - 48px));
    --ease: cubic-bezier(.52, .01, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); overflow-x: hidden; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.section-shell { width: var(--page); margin-inline: auto; }
.eyebrow {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.eyebrow.lime { color: #6d8900; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 430; letter-spacing: -.045em; }
h2 { font-size: clamp(46px, 6.2vw, 92px); line-height: .98; }
h3 { font-size: clamp(25px, 2vw, 34px); line-height: 1.05; }
em { color: var(--lime); font-style: normal; }

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--page);
    min-height: 74px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: rgba(16,16,16,.76);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bone);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy b { font-size: 12px; letter-spacing: .18em; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.main-nav { display: flex; gap: 31px; font-size: 12px; letter-spacing: .05em; }
.main-nav a, .text-link, .footer-links a { transition: color .45s var(--ease); }
.main-nav a:hover, .text-link:hover, .footer-links a:hover { color: var(--lime); }
.header-cta {
    justify-self: end;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 5px;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: background .4s var(--ease), color .4s var(--ease), border .4s var(--ease);
}
.header-cta:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.hero {
    min-height: 100svh;
    padding: 132px 0 46px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(470px, 1.05fr);
    grid-template-rows: 1fr auto;
    gap: 40px 58px;
    align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(78px, 10.5vw, 164px); line-height: .82; letter-spacing: -.07em; }
.hero h1 em { display: inline-block; transform: translateX(5vw); }
.hero-lead { max-width: 570px; margin: 42px 0 0; color: #d4d7d5; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.42; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.button:hover { transform: translateY(-3px); }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: var(--bone); }
.button-outline { border-color: rgba(255,255,255,.35); }
.button-outline:hover { background: var(--bone); color: var(--ink); }
.text-link { display: inline-flex; gap: 11px; align-items: center; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.text-link.light { color: var(--bone); }

.hero-stage {
    position: relative;
    min-height: min(680px, 70vh);
    display: grid;
    place-items: center;
    isolation: isolate;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 44%, rgba(200,255,0,.2), transparent 31%),
        #151716;
    border: 1px solid rgba(255,255,255,.09);
}
.stage-grid, .final-grid {
    position: absolute;
    inset: 0;
    opacity: .26;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent);
}
.hero-product-wrap { position: relative; z-index: 3; width: min(82%, 600px); animation: float 6.65s var(--ease) infinite alternate; }
.hero-product { width: 100%; filter: drop-shadow(0 42px 35px rgba(0,0,0,.5)) drop-shadow(20px 0 18px rgba(42,127,255,.14)) drop-shadow(-16px 0 16px rgba(255,42,42,.12)); }
.orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.orbit-one { width: 76%; aspect-ratio: 1; transform: rotate(28deg) scaleY(.43); }
.orbit-two { width: 54%; aspect-ratio: 1; transform: rotate(-48deg) scaleX(.48); border-color: rgba(200,255,0,.34); }
.spec-chip {
    position: absolute;
    z-index: 4;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(16,16,16,.75);
    backdrop-filter: blur(9px);
    display: grid;
    gap: 2px;
}
.spec-chip small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.spec-chip strong { font-size: 13px; font-weight: 500; }
.spec-chip-top { top: 21%; left: 7%; }
.spec-chip-bottom { right: 7%; bottom: 23%; }
.hero-index { position: absolute; right: 20px; top: 18px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.hero-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
@keyframes float { from { transform: translate3d(-4px, 7px, 0) rotate(-1deg); } to { transform: translate3d(7px, -10px, 0) rotate(1deg); } }

.benefits { padding: 150px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: end; margin-bottom: 68px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading > p:last-child { max-width: 410px; justify-self: end; margin: 0; color: var(--muted); font-size: 18px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 12px; }
.benefit-card {
    min-height: 300px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--paper);
    color: var(--dark-on-paper);
    border-radius: var(--radius);
}
.benefit-card-main { grid-column: span 2; background: var(--lime); }
.benefit-card-wide { grid-column: span 2; min-height: 230px; flex-direction: row; align-items: end; background: var(--graphite); color: var(--bone); }
.benefit-number { font-size: 10px; letter-spacing: .1em; opacity: .55; }
.benefit-icon { margin: auto 0; font-family: Georgia, serif; font-size: 68px; font-weight: 400; line-height: 1; }
.benefit-card h3 { margin-bottom: 13px; }
.benefit-card p { max-width: 480px; margin: 0; opacity: .7; font-size: 15px; }
.sound-bars { min-width: 40%; height: 130px; display: flex; align-items: end; justify-content: end; gap: 8px; }
.sound-bars i { display: block; width: 10px; background: var(--lime); border-radius: 10px; animation: sound 2.2s ease-in-out infinite alternate; }
.sound-bars i:nth-child(1) { height: 24%; }.sound-bars i:nth-child(2) { height: 56%; animation-delay: -.4s; }.sound-bars i:nth-child(3) { height: 80%; animation-delay: -.8s; }.sound-bars i:nth-child(4) { height: 52%; animation-delay: -1.2s; }.sound-bars i:nth-child(5) { height: 34%; animation-delay: -1.6s; }.sound-bars i:nth-child(6) { height: 16%; animation-delay: -2s; }
@keyframes sound { to { transform: scaleY(.58); opacity: .55; } }

.catalog-section { padding: 135px 0; background: #0c0d0d; border-block: 1px solid #262929; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 55px; }
.catalog-head h2 { max-width: 990px; }
.catalog-head .button { flex: 0 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #2e3232; border-radius: var(--radius); background: var(--ink-soft); }
.product-card:first-child { grid-column: span 2; }
.product-visual { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: #202323; }
.product-card:first-child .product-visual { min-height: 520px; background: radial-gradient(circle at 50% 60%, rgba(200,255,0,.18), transparent 36%), #202323; }
.product-visual img { position: relative; z-index: 1; width: min(78%, 430px); max-height: 370px; object-fit: contain; transition: transform .65s var(--ease), filter .65s var(--ease); filter: drop-shadow(0 22px 18px rgba(0,0,0,.35)); }
.product-card:first-child .product-visual img { width: min(70%, 540px); max-height: 470px; }
.product-card:hover .product-visual img { transform: scale(1.055) rotate(-1.5deg); filter: drop-shadow(0 30px 24px rgba(0,0,0,.48)); }
.product-tag { position: absolute; z-index: 2; top: 17px; left: 17px; padding: 7px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-count { position: absolute; z-index: 2; right: 17px; top: 17px; color: #7e8585; font-size: 10px; letter-spacing: .13em; }
.product-info { padding: 23px; }
.product-info > p { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.product-info h3 { min-height: 70px; font-size: clamp(24px, 2vw, 32px); }
.product-bottom { margin-top: 27px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #343838; }
.product-bottom strong { font-size: 17px; font-weight: 500; }
.product-bottom a { color: var(--lime); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.price-note { margin: 24px 0 0; color: #6f7677; font-size: 11px; }

.thermostat { margin-top: 145px; margin-bottom: 145px; min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: var(--radius); background: var(--graphite); }
.thermostat-visual { position: relative; min-height: 650px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #25292b 0 50%, #303537 50%); }
.thermostat-visual::before { content: ""; position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid rgba(200,255,0,.4); border-radius: 50%; box-shadow: 0 0 100px rgba(200,255,0,.12); }
.thermostat-visual img { position: relative; z-index: 2; width: 88%; filter: drop-shadow(0 30px 22px rgba(0,0,0,.5)); }
.temperature { position: absolute; z-index: 3; padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); font-size: 9px; letter-spacing: .13em; }
.temperature-hot { left: 8%; top: 15%; color: #ff7868; }
.temperature-cold { right: 8%; bottom: 15%; color: #69a7ff; }
.thermostat-copy { padding: clamp(45px, 6vw, 95px); display: flex; flex-direction: column; justify-content: center; }
.thermostat-copy > p:not(.eyebrow) { margin: 35px 0; color: #c1c7c8; font-size: 18px; line-height: 1.55; }
.temperature-scale { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin: 12px 0 42px; color: var(--muted); font-size: 10px; }
.temperature-scale i { height: 1px; background: #62696b; }
.temperature-scale strong { padding: 8px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.comparison { padding: 30px 0 145px; }
.compare-table { border-top: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); }
.compare-row > * { padding: 20px; }
.compare-row > * + * { border-left: 1px solid var(--line); }
.compare-row strong { color: var(--lime); font-weight: 500; }
.compare-row span:last-child { color: var(--muted); }
.compare-header { min-height: 58px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.compare-header strong { color: var(--bone); }

.package { padding: 0 0 150px; }
.package-title { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 55px; }
.package-title .eyebrow { margin: 0; }
.package-title h2 { grid-column: 1 / -1; max-width: 970px; }
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.package-card { min-height: 390px; padding: 34px; border-radius: var(--radius); background: var(--paper); color: var(--dark-on-paper); display: flex; flex-direction: column; }
.package-card-accent { background: var(--lime); }
.package-label { margin-bottom: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.package-card ul { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(0,0,0,.2); }
.package-card li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.2); }
.package-card li::before { content: "✓"; margin-right: 12px; }

.faq { padding: 135px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; border-top: 1px solid var(--line); }
.faq-intro { position: sticky; top: 110px; align-self: start; }
.faq-intro > p:not(.eyebrow) { max-width: 430px; color: var(--muted); margin: 30px 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--lime); font-size: 30px; font-weight: 300; transition: transform .4s var(--ease); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 50px 30px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.final-cta { position: relative; min-height: 720px; margin-top: 80px; padding: 100px 7vw; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-radius: var(--radius); background: var(--graphite); isolation: isolate; }
.final-cta::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -25%; width: 58%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(200,255,0,.4); box-shadow: 0 0 120px rgba(200,255,0,.15); }
.final-cta h2 { font-size: clamp(64px, 9vw, 138px); }
.final-actions { display: flex; align-items: center; gap: 34px; margin-top: 48px; }

.site-footer { min-height: 250px; padding: 55px 0 35px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; border-top: 1px solid var(--line); margin-top: 90px; }
.site-footer > p { margin: 0; color: var(--muted); }
.footer-links { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.mobile-cta { display: none; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    :root { --page: min(100% - 32px, 1000px); }
    .site-header { grid-template-columns: 1fr auto; }
    .main-nav { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 120px; }
    .hero-copy { padding-top: 40px; }
    .hero h1 em { transform: none; }
    .hero-stage { min-height: 620px; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .product-card:first-child { grid-column: span 2; }
    .thermostat { grid-template-columns: 1fr; }
    .thermostat-copy { min-height: 580px; }
    .faq { gap: 50px; }
}

@media (max-width: 700px) {
    :root { --page: calc(100vw - 24px); --radius: 14px; }
    body.admin-bar .site-header { top: 46px; }
    .site-header { min-height: 65px; }
    .brand-copy small { display: none; }
    .header-cta { padding: 9px 10px; font-size: 9px; }
    .hero { min-height: auto; padding: 106px 0 28px; gap: 30px; }
    .hero-copy { padding-top: 18px; }
    .hero h1 { font-size: clamp(65px, 23vw, 96px); }
    .hero-lead { margin-top: 30px; font-size: 18px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
    .hero-stage { min-height: 480px; }
    .hero-product-wrap { width: 92%; }
    .spec-chip { padding: 9px 10px; }
    .spec-chip-top { top: 15%; left: 4%; }
    .spec-chip-bottom { right: 4%; bottom: 17%; }
    .hero-footnote { gap: 15px; overflow-x: auto; justify-content: flex-start; white-space: nowrap; }
    .benefits, .catalog-section, .faq { padding: 95px 0; }
    .section-heading { grid-template-columns: 1fr; margin-bottom: 44px; }
    .section-heading > p:last-child { justify-self: start; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-card-main, .benefit-card-wide { grid-column: auto; }
    .benefit-card-wide { flex-direction: column; align-items: stretch; }
    .sound-bars { min-width: 100%; }
    .catalog-head { align-items: flex-start; flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card:first-child { grid-column: auto; }
    .product-visual, .product-card:first-child .product-visual { min-height: 390px; }
    .product-card:first-child .product-visual img { width: 84%; }
    .thermostat { margin-block: 95px; }
    .thermostat-visual { min-height: 420px; }
    .thermostat-copy { min-height: 540px; padding: 36px 25px; }
    .temperature-scale { gap: 6px; }
    .comparison { padding-bottom: 95px; }
    .compare-row { grid-template-columns: .8fr 1fr; }
    .compare-row > *:last-child { display: none; }
    .package { padding-bottom: 95px; }
    .package-title, .package-grid { grid-template-columns: 1fr; }
    .package-card { min-height: 330px; }
    .faq { grid-template-columns: 1fr; }
    .faq-intro { position: static; }
    .faq-list summary { min-height: 82px; font-size: 18px; }
    .final-cta { min-height: 620px; margin-top: 30px; padding: 70px 24px; }
    .final-actions { align-items: flex-start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; padding-bottom: 105px; }
    .footer-links { grid-column: auto; flex-direction: column; gap: 14px; }
    .mobile-cta { position: fixed; z-index: 90; display: flex; align-items: center; justify-content: space-between; left: 12px; right: 12px; bottom: 12px; min-height: 54px; padding: 0 18px; border-radius: 4px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 35px rgba(0,0,0,.4); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
