/* v4: fluid landing grids and compact, explicit measurement fields. */
.smile-landing .wrap{width:calc(100% - clamp(32px,6vw,96px))}
.smile-landing .section{padding-top:clamp(52px,7vw,100px)}
.smile-landing .section h2{font-size:clamp(28px,3.2vw,42px);text-wrap:balance}
.smile-landing .section>*,.facts-grid>*,.salon-grid>*,.quiz-preview>*{min-width:0}
.smile-landing .about-section{grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:clamp(32px,5vw,72px);align-items:start}
.smile-landing .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.smile-landing .facts-grid article{padding:clamp(20px,2.3vw,32px);border:1px solid #e2dace;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start}
.smile-landing .facts-grid article>span{line-height:1;display:block;margin-bottom:16px;font-size:28px}
.smile-landing .facts-grid h3{margin:0 0 10px;font-size:clamp(17px,1.5vw,21px);line-height:1.3}
.smile-landing .facts-grid p{margin:0;font-size:14px;line-height:1.6}
.smile-landing .about-section>div>p{max-width:440px}
.smile-landing .offer{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:28px 44px;padding:clamp(24px,4vw,56px);background:#c63e22;border-radius:18px;margin-top:24px;box-shadow:0 14px 35px #85352116}
.offer::before{content:none}
.offer .offer-kicker{display:inline-block;font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;padding:8px 12px;border:1px solid #ffffff70;border-radius:30px;margin-bottom:24px}
.offer h2{font-size:clamp(30px,3.2vw,46px);letter-spacing:-1.4px;line-height:1.1;font-weight:500;margin:0 0 18px;max-width:660px;text-wrap:balance}
.offer h2 em{font-style:normal;color:#ffe9ba}
.offer .offer-copy>p{color:#ffede5;font-size:15px;margin:0 0 26px}
.offer a.offer-cta{display:inline-flex;background:#fff8e9;color:#8b2d18;font-size:14px;padding:16px 22px;align-self:start}
.offer a.offer-cta:hover{background:white}
.offer-deadline{align-self:center;min-width:0;text-align:center;padding:28px 0}
.offer-deadline>span{font-size:13px;color:#ffe9dc}
.offer-clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px auto;max-width:380px}
.offer-clock>div{background:#9c2c1d55;border:1px solid #ffc2a74d;border-radius:12px;padding:16px 6px 12px}
.offer-clock b{display:block;font-size:clamp(27px,3.5vw,45px);font-weight:500;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.offer-clock span{display:block;font-size:10px;margin-top:10px;color:#ffddcb}
.offer .offer-end-date{font-size:11px;line-height:1.7;color:#ffe6d5;margin:0}
.offer .offer-terms{grid-column:1/-1;border-top:1px solid #ffffff33;padding-top:18px;margin:0;font-size:11px;line-height:1.6;color:#ffdfcf}
.q-exact-panel{background:#fffdf6f5;border:1px solid #d5cbbb;border-radius:12px;padding:18px}
.q-exact-panel .q-exact-intro{gap:16px;padding:0 0 16px;margin:0 0 18px;align-items:center;border-bottom:1px solid #e4ded2}
.q-exact-intro img{width:45%;max-width:200px;height:120px;mix-blend-mode:multiply}.q-exact-intro>span{font-size:16px}.q-exact-intro small{font-size:11px;line-height:1.5}
.q-dimension-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.q-dimension-grid .q-dimension{display:block;margin:0;font-size:12px;min-width:0}
.q-dimension>span{display:flex;align-items:center;gap:7px;margin-bottom:8px}.q-dimension>span b{display:grid;place-items:center;width:22px;height:22px;border-radius:5px;background:#f5e4d8;color:#a13720;font-size:12px}
.q-dimension-grid .q-dimension>div{width:100%}.q-dimension input{padding-right:38px!important;font-variant-numeric:tabular-nums}
.q-exact-panel .q-caption{max-width:none;font-size:11px;line-height:1.6;margin-top:16px}
#size-presets{margin-top:16px;min-height:44px;text-align:left;color:#655d4f}
.q-materials{gap:12px}.q-material{padding:10px;gap:14px;min-height:112px}
.q-material-photo{width:132px;height:94px;border-radius:7px;flex:0 0 132px;object-fit:cover}
.q-material-unsure{width:44px;height:44px;flex:0 0 44px;background:#eeebe2;border-radius:50%;display:grid;place-items:center;font-size:25px;color:#797568}
.q-material:has(.q-material-unsure){min-height:76px;padding:14px}
@media(max-width:1000px){
 .smile-landing .about-section,.smile-landing .salons-section,.smile-landing .project-section{grid-template-columns:1fr;gap:28px}
 .smile-landing .about-section>div:first-child{max-width:600px}
 .smile-landing .split-feature{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .smile-landing .quiz-section{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:28px}
 .smile-landing .offer{grid-template-columns:1fr;gap:24px}
 .offer .offer-deadline{padding:0;text-align:left}.offer-clock{margin:14px 0;max-width:400px;text-align:center}
 .offer .offer-kicker{margin-bottom:18px}
}
@media(max-width:700px){
 .smile-landing .quiz-section,.smile-landing .split-feature{grid-template-columns:1fr}
 .smile-landing .offer{padding:26px 22px;margin-top:16px;border-radius:14px;gap:26px}
 .offer a.offer-cta{width:100%}.offer h2{font-size:32px}.offer .offer-copy>p{font-size:14px}
 .offer-clock b{font-size:34px}.offer .offer-terms{font-size:10px}
 .q-material{gap:12px}.q-material-photo{width:105px;height:94px;flex-basis:105px}
 .q-material b{font-size:13px}.q-material small{font-size:10px}
 .q-exact-panel{padding:14px}.q-exact-intro img{height:100px}.q-dimension-grid{gap:12px}
}
@media(max-width:480px){
 .smile-landing .facts-grid,.smile-landing .salon-grid{grid-template-columns:1fr}
 .smile-landing .facts-grid article{padding:22px}.smile-landing .facts-grid article>span{margin-bottom:12px}
 .smile-landing .about-section .btn{width:100%}.smile-landing .portfolio-grid{gap:24px 14px}
 .q-exact-intro>span{font-size:14px}.q-dimension>span{font-size:11px}.q-dimension input{font-size:16px!important}
}
@media(max-width:360px){.q-material-photo{width:84px;height:86px;flex-basis:84px}.q-material{gap:10px}.offer h2{font-size:29px}.offer-clock{gap:6px}.offer-clock b{font-size:28px}.q-exact-intro{gap:10px!important}}

.smile-landing .portfolio-card img,.smile-landing .other-grid img{height:auto}

/* Owner's project galleries: fixed frame, no autoplay, controls on every device. */
.project-photos{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#e5dfd3;touch-action:pan-y}
.portfolio-card .project-photo{display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:none}
.smile-landing .portfolio-card .project-photo img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0}
.portfolio-card .gallery-arrow,.gallery-stage .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:1px solid #ffffff90;border-radius:50%;background:#fffdf5ed;color:#3c382f;font-size:0;line-height:0;cursor:pointer;box-shadow:0 2px 10px #0002}
.gallery-prev{left:10px}.gallery-next{right:10px}
.portfolio-card .gallery-arrow:hover,.gallery-stage .gallery-arrow:hover{background:white}
.project-photo-count{position:absolute;bottom:12px;right:12px;border-radius:20px;background:#252824c9;color:white;padding:5px 11px;font-size:11px;pointer-events:none;font-variant-numeric:tabular-nums}
.gallery-open{overflow:hidden}
#photo-dialog{padding:0;width:min(1120px,calc(100vw - 40px));max-width:none;height:min(900px,calc(100dvh - 40px));max-height:none;background:#f8f5ee;color:#302d27;border-radius:16px;overflow:hidden}
#photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#photo-dialog::backdrop{background:#191713d9;backdrop-filter:blur(6px)}
.gallery-header{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #ded8cd}
.gallery-header h2{font-size:20px;letter-spacing:-.5px;line-height:1.3;margin:0}
#photo-dialog .close-dialog{position:static;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;margin:0;padding:0;border:0;line-height:0;background:#eae5da;color:#3c382f}
.gallery-arrow svg,#photo-dialog .close-dialog svg{display:block;pointer-events:none}
.gallery-arrow[hidden]{display:none!important}
#photo-dialog .close-dialog:hover{background:#ded7ca}
.gallery-stage{position:relative;min-height:0;overflow:hidden;display:flex;justify-content:center;align-items:center;touch-action:pan-y;background:#e8e3d9}
#gallery-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.gallery-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 20px;font-size:12px;color:#605c53}
#gallery-counter{font-variant-numeric:tabular-nums}
@media(max-width:1000px){.smile-landing .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.smile-landing .portfolio-grid{grid-template-columns:1fr;gap:30px}.portfolio-card h3{font-size:19px}.portfolio-card p{font-size:12px}.portfolio-card button[data-calculate]{min-height:44px;font-size:13px;margin-top:4px}.project-photos{aspect-ratio:4/3}#photo-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.gallery-header{padding:14px 16px}.gallery-header h2{font-size:18px}.gallery-footer{font-size:11px;padding:16px 16px max(16px,env(safe-area-inset-bottom))}.gallery-stage .gallery-arrow{top:auto;bottom:16px;transform:none}}

/* v6: text sections read vertically, with content below the introduction. */
.smile-landing .quiz-section,.smile-landing .about-section,.smile-landing .faq-section,.smile-landing .salons-section{display:flex;flex-direction:column;gap:30px}
.smile-landing .quiz-intro,.smile-landing .about-section>div:first-child,.smile-landing .faq-intro,.smile-landing .salons-section>div:first-child{width:100%;max-width:900px}
.smile-landing .quiz-intro>p,.smile-landing .about-section>div>p,.smile-landing .faq-intro>p,.smile-landing .salons-section>div>p{max-width:760px;font-size:16px;line-height:1.65;margin-bottom:22px}
.smile-landing .quiz-intro h2,.smile-landing .about-section h2,.smile-landing .faq-section h2{max-width:1000px;margin-bottom:18px;text-wrap:initial}
.smile-landing .quiz-preview{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.smile-landing .quiz-preview img{height:145px}.smile-landing .quiz-preview button{padding:18px}.smile-landing .quiz-preview span{font-size:15px}
.smile-landing .facts-grid{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.smile-landing .faq-items{width:100%;max-width:980px}.faq-items details{padding:24px 0}.faq-items summary{font-size:17px}.faq-items details p{max-width:850px;font-size:15px}
.smile-landing .salon-grid{width:100%}.smile-landing .section-heading{display:block}.smile-landing .section-heading p{margin-top:16px;font-size:15px}
.q-result-eyebrow{display:block;font-size:11px;color:#756e60;margin-bottom:12px}.q-result h2{margin-bottom:18px;font-size:clamp(27px,4.5vw,33px);line-height:1.15}
.q-result .result-price{font-size:clamp(34px,7vw,45px);margin:0 0 10px;letter-spacing:-1.5px}.q-result .q-basis{margin-bottom:20px}
.q-result .q-estimate-explainer,.q-result .q-personal-estimate{font-size:13px;line-height:1.6;color:#5c594f}
.q-budget-summary{font-size:12px;line-height:1.6;color:#5c594f;margin:16px 0}.q-budget-summary b{color:#38372f}
.q-result-offer{background:#c63e22;color:#fff8ed;padding:20px;border-radius:12px;margin:22px 0 0}
.q-offer-kicker{display:block;font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#ffe2cf;margin-bottom:10px}
.q-result-offer h3{font-size:22px;letter-spacing:-.5px;margin:0 0 8px;color:#ffe9ba}.q-result-offer>p{font-size:11px;line-height:1.6;color:#ffede2;margin:0 0 16px}
.q-offer-timer-label{font-size:10px;color:#ffede2}.q-result-offer .offer-clock{margin:10px 0;max-width:360px;gap:6px}.q-result-offer .offer-clock b{font-size:28px}.q-result-offer .offer-clock>div{padding:11px 4px 9px;text-align:center}.q-result-offer .offer-clock span{font-size:9px;margin-top:6px}.q-result-offer>small{font-size:9px;color:#ffdfcc}
.q-result .q-result-note{margin:20px 0 0;padding-top:16px;font-size:12px;line-height:1.6}.q-result #restart-quiz{min-height:44px;margin-top:12px}
@media(max-width:1100px){.smile-landing .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smile-landing .quiz-preview img{height:120px}}
@media(max-width:700px){.smile-landing .quiz-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.smile-landing .quiz-preview button{padding:12px}.smile-landing .quiz-preview img{height:106px}.smile-landing .quiz-intro>p,.smile-landing .about-section>div>p,.smile-landing .faq-intro>p,.smile-landing .salons-section>div>p{font-size:14px}.smile-landing .quiz-preview span{font-size:13px}.faq-items summary{font-size:15px}.q-result-offer{padding:17px}}
@media(max-width:480px){.smile-landing .facts-grid{grid-template-columns:1fr}.q-result-offer h3{font-size:21px}}

/* v7: a separate, responsive public footer; never affects the quiz footer. */
.smile-landing .site-footer{display:block;padding:0;border-top:1px solid #d7cebe;background:#f3eee5e8}
.site-footer-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:48px;padding:48px 0 40px}
.site-footer-brand p{max-width:320px;margin:22px 0 0;color:#666154;font-size:14px;line-height:1.7}
.site-footer-label{display:block;margin:0 0 14px;color:#797163;font-size:10px;letter-spacing:1.4px;text-transform:uppercase}
.site-footer-links a,.site-footer-contact>a{display:flex;align-items:center;min-height:44px;width:fit-content;font-size:14px;gap:20px}
.site-footer-contact .site-footer-vk{color:#b63920;font-size:18px}
.site-footer-contact p{font-size:12px;line-height:1.6;color:#666154;margin:8px 0 0}
.site-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #d7cebe;padding:18px 0 24px;color:#666154}
.site-footer-bottom>a{display:flex;align-items:center;min-height:44px;font-size:12px;text-decoration:underline;text-decoration-color:#b5ab98;text-underline-offset:4px}
.site-footer-bottom small{font-size:10px}
.site-footer a:focus-visible{outline:2px solid #d14224;outline-offset:5px;border-radius:3px}
@media(max-width:800px){.site-footer-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}.site-footer-brand{grid-column:1/-1}.site-footer-brand p{max-width:none;margin-top:16px}}
@media(max-width:600px){.site-footer-main{grid-template-columns:1fr;gap:28px;padding:32px 0}.site-footer-brand{grid-column:auto}.site-footer-label{margin-bottom:8px}.site-footer-links{display:flex;flex-wrap:wrap;column-gap:24px}.site-footer-links .site-footer-label{width:100%}.site-footer-links a{font-size:13px}.site-footer-bottom{flex-direction:column;align-items:flex-start;gap:12px;padding:16px 0 calc(102px + env(safe-area-inset-bottom))}.site-footer-bottom>a{font-size:12px}.site-footer-brand p{font-size:13px}}

/* v8: every FAQ answer is visible; text wraps to the available width. */
.faq-answer{padding:22px 0;border-bottom:1px solid var(--line)}
.faq-answer:first-child{padding-top:0}
.faq-answer h3{font-size:18px;font-weight:600;line-height:1.4;margin:0 0 10px}
.faq-answer p{max-width:850px;font-size:15px;line-height:1.7;margin:0}
.smile-landing #other .section-heading p{max-width:none;text-wrap:wrap}
@media(max-width:700px){.faq-answer{padding:20px 0}.faq-answer h3{font-size:16px}.faq-answer p{font-size:14px}}
.form-privacy-note{font-size:11px;line-height:1.55;color:#756e60;margin:10px 0 18px}.form-privacy-note a{text-decoration:underline;text-underline-offset:3px}

.factory-section .section-heading{display:block}.factory-section .section-heading p{max-width:680px;margin-top:20px}.factory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.factory-grid figure{margin:0;min-width:0}.factory-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px}.factory-grid figcaption{margin-top:12px;font-size:14px;color:var(--muted)}@media(max-width:600px){.factory-grid{grid-template-columns:1fr;gap:24px}.factory-grid img{aspect-ratio:4/3}.factory-grid figcaption{font-size:13px}}

/* Quiet material texture; contrast stays consistent behind the timer. */
.smile-landing .offer,.q-result-offer{background-color:#b93c23;background-image:linear-gradient(110deg,#a92f1c55,#a6301d88),url('/static/img/backgrounds/promo-terracotta-v1.webp');background-size:cover;background-position:center}

.seo-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.seo-details-grid h3{font-size:21px;line-height:1.25;margin:0 0 12px}.seo-details-grid p{color:var(--muted,#626c5e);line-height:1.65;margin:0}.seo-details-grid article{min-width:0}@media(max-width:760px){.seo-details-grid{grid-template-columns:1fr;gap:28px}}

.smile-landing [hidden]{display:none!important}

/* Keep consent aligned despite the general form label rules. */
.smile-landing .form-panel label.check,.smile-landing .contact-fields label.check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:15px 0}
.smile-landing label.check>input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;padding:0;accent-color:var(--brand)}
.smile-landing label.check>span{min-width:0;flex:1}

.wardrobe-form .wardrobe-extras{padding:15px 0;margin:0 0 20px;border-top:1px solid var(--line)}
.wardrobe-extras summary{font-size:14px;line-height:1.5;color:var(--ink)}
.wardrobe-extras summary small{font-size:11px;color:var(--muted);margin-left:6px}
.wardrobe-extras[open] summary{margin-bottom:18px}
