:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--paper)}
a{color:inherit;text-underline-offset:.18em}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
button,input,select{font:inherit}
img{display:block;width:100%;height:auto}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{line-height:1.1;overflow-wrap:break-word}
h1,h2,.brand{font-family:var(--display);font-weight:var(--display-weight,650);letter-spacing:-.045em}
h1{font-size:clamp(2.7rem,6vw,6rem)}
h2{font-size:clamp(2rem,4.1vw,4rem);max-width:18ch}
h3{font-size:1.25rem;letter-spacing:-.022em}
small{font-size:.82rem;color:var(--muted)}
.shell{width:min(100% - 64px,1160px);margin-inline:auto}
.skip-link{position:fixed;z-index:2;top:8px;left:8px;background:var(--paper);padding:.7rem;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.demo-bar{background:var(--ink);color:#fff;font-size:.77rem}
.demo-bar .shell{display:flex;align-items:center;min-height:35px;gap:.9rem;flex-wrap:wrap}
.demo-bar span{opacity:.84}
.demo-bar a{margin-left:auto}
.header{display:flex;align-items:center;justify-content:space-between;gap:1.3rem;padding:20px 0}
.brand{font-size:clamp(1.8rem,3vw,2.45rem);white-space:nowrap;text-decoration:none}
nav{display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem 1.5rem;font-size:.91rem;color:var(--muted)}
nav a{text-decoration:none}
nav a:hover{text-decoration:underline}
.button{display:inline-flex;align-items:center;justify-content:center;text-align:center;width:fit-content;max-width:100%;border:1px solid transparent;border-radius:var(--button-radius,8px);background:var(--accent);color:#fff;padding:.85rem 1.25rem;font-weight:650;line-height:1.25;text-decoration:none;cursor:pointer}
.button:hover{background:var(--accent-hover)}
.button:disabled{cursor:default;opacity:.58}
.nav-action{font-size:.85rem}
.hero,.section{scroll-margin-top:20px}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;min-height:min(74svh,630px);gap:clamp(22px,4.5vw,64px);margin-bottom:clamp(56px,8vw,112px)}
.hero-copy{padding-block:40px}
.eyebrow{margin-bottom:1rem;font-size:.78rem;font-weight:720;letter-spacing:.09em;text-transform:uppercase;color:var(--accent)}
.hero-lead{font-size:clamp(1.03rem,1.8vw,1.24rem);max-width:43ch;margin-top:1.2rem;color:var(--muted)}
.hero .button{margin-top:1.6rem}
.hero-media img{aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius,14px)}
.section{margin-bottom:clamp(56px,8vw,112px)}
.section h2+p,.reading{margin-top:1.05rem;color:var(--muted);max-width:58ch;font-size:1.08rem}
.cards,.steps,.portfolio,.price-layout,.panel,.action{display:grid;align-items:start;gap:clamp(12px,2.3vw,26px)}
.cards,.steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards,.steps,.portfolio,.price-layout,.policy{margin-top:clamp(22px,4vw,40px)}
.portfolio,.panel,.action,.price-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
.panel,.action{padding:clamp(22px,4vw,52px);border-radius:var(--radius,14px);background:var(--tint)}
.card,.action-card{background:var(--card,#fff);border:1px solid var(--line);border-radius:var(--radius,14px);padding:clamp(16px,2.8vw,30px);min-width:0}
.card p,.card small,.policy dd,.steps p{margin-top:.7rem;color:var(--muted)}
.card small,.card a{display:block;margin-top:.85rem}
.card .price{font-family:var(--display);font-size:clamp(1.7rem,3vw,2.65rem);letter-spacing:-.035em;line-height:1.12;color:var(--ink)}
.price small{font: .83rem/1.3 system-ui;letter-spacing:0;display:inline}
.text-button{background:none;color:var(--accent);font-weight:650;padding:0;border:0;text-align:left;margin-top:.95rem;text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.steps{padding-left:0;list-style:none;counter-reset:step}
.steps li{padding:16px 0 0;border-top:1px solid var(--line);counter-increment:step}
.steps li::before{content:counter(step,decimal-leading-zero);display:block;margin-bottom:.55rem;font-size:.83rem;color:var(--accent);font-weight:700}
.inset-photo img{border-radius:var(--radius,14px);object-fit:cover;aspect-ratio:5/3}
figcaption{font-size:.91rem;color:var(--muted);padding-top:.65rem}
.policy{margin-bottom:0}
.policy div{display:grid;grid-template-columns:minmax(8ch,1fr) minmax(0,3fr);gap:1rem;border-top:1px solid var(--line);padding:.85rem 0}
.policy dt{font-weight:700}
.policy dd{margin:0}
.package-list{display:grid;gap:.75rem}
form{display:grid;gap:1rem}
form label,.form-pair{min-width:0;display:grid;gap:.35rem}
form label{font-size:.94rem;font-weight:650}
.form-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
input,select{border:1px solid var(--field);border-radius:8px;background:var(--card,#fff);color:var(--ink);width:100%;min-width:0;padding:.62rem .65rem;min-height:45px}
.estimate{background:var(--paper);border-radius:8px;padding:.65rem .75rem;font-size:.92rem}
#completion{display:grid;gap:.85rem}
#result-title:focus{outline:none}
#result-list{margin:0;padding-left:1.15rem}
.footer{display:flex;justify-content:space-between;gap:.7rem;flex-wrap:wrap;padding-block:20px 36px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}

.theme-psiholog{--ink:#252d25;--muted:#525b4d;--paper:#f8f7ef;--tint:#e6e9db;--accent:#365447;--accent-hover:#284135;--line:#d8decc;--field:#adb7a6;--focus:#506f5c;--display:Georgia,serif;--display-weight:500;--button-radius:99px;--radius:22px}
.theme-psiholog .hero{grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)}
.theme-psiholog .hero-media img{aspect-ratio:4/4.4;max-height:552px;border-radius:47% 47% 22px 22px;object-position:center 44%}
.theme-psiholog .price-card{border-left:4px solid var(--accent)}

.theme-stomatologiya{--ink:#27312c;--muted:#535e55;--paper:#fffdf6;--tint:#e9eddf;--accent:#33583f;--accent-hover:#274633;--line:#d8ddd2;--field:#aeb9a9;--focus:#587c5b;--display:system-ui,sans-serif;--radius:16px}
.theme-stomatologiya h1{font-size:clamp(2.35rem,5.2vw,5rem);line-height:1.03}
.theme-stomatologiya .hero-media{padding:10px;border:1px solid #d3ddca;border-radius:22px}
.theme-stomatologiya .hero-media img{aspect-ratio:5/4;object-position:60% center}
.theme-stomatologiya .card .price{color:#425d39}

.theme-yurist{--ink:#1d2739;--muted:#4b586c;--paper:#f4efe5;--tint:#e7e1d4;--accent:#283f5c;--accent-hover:#1a2c43;--line:#cdc6b9;--field:#aeb0b4;--focus:#8d6538;--display:Georgia,serif;--display-weight:500;--radius:3px;--button-radius:3px}
.theme-yurist .hero{background:#202e42;color:#fff;padding-left:clamp(20px,4vw,55px);gap:1.1rem;min-height:530px}
.theme-yurist .hero h1{font-size:clamp(2.45rem,5vw,5.1rem)}
.theme-yurist .hero :is(.hero-lead,.eyebrow){color:#e8dcc7}
.theme-yurist .hero .button{color:#222c3c;background:#e9d6ae}
.theme-yurist .hero .button:hover{background:#fff0ce}
.theme-yurist .hero-media,.theme-yurist .hero-media img{height:100%;min-height:530px;border-radius:0;object-fit:cover}
.theme-yurist .hero-media img{object-position:57% center}

.theme-otel{--ink:#2c362c;--muted:#4c594b;--paper:#f7f5ed;--tint:#e2e8da;--accent:#456043;--accent-hover:#334b33;--line:#d6dacc;--field:#adb6a6;--focus:#846335;--display:Georgia,serif;--display-weight:500;--radius:12px;--button-radius:4px}
.theme-otel .hero{min-height:min(75svh,650px);isolation:isolate;display:flex;align-items:end;padding:clamp(25px,5vw,66px);border-radius:var(--radius);overflow:hidden;background:#273b30;color:#fff}
.theme-otel .hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(75deg,rgba(20,30,24,.89) 4%,rgba(20,30,24,.6) 35%,rgba(20,30,24,.1) 69%),linear-gradient(0deg,rgba(18,28,23,.32),transparent 75%)}
.theme-otel .hero-media{position:absolute;inset:0;z-index:-2}
.theme-otel .hero-media img{width:100%;height:100%;object-position:center center}
.theme-otel .hero-copy{padding:0;max-width:470px}
.theme-otel .hero :is(.hero-lead,.eyebrow){color:#f3eddf}
.theme-otel .hero .button{color:#263022;background:#e7d6ad}
.theme-otel .hero .button:hover{background:#f9ebcd}

.theme-fotograf{--ink:#3a2c36;--muted:#5e5260;--paper:#faf5ed;--tint:#ece7d9;--accent:#64475f;--accent-hover:#4e3449;--line:#e0d4d5;--field:#beadb8;--focus:#8a617c;--display:Georgia,serif;--display-weight:500;--radius:7px;--button-radius:99px}
.theme-fotograf .hero{border-block:1px solid var(--line);padding-block:18px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.theme-fotograf .hero h1{font-size:clamp(2.55rem,5.45vw,5.1rem)}
.theme-fotograf .hero-media img{aspect-ratio:7/6;object-position:70% center}
.theme-fotograf .portfolio figure:nth-child(2){margin-top:clamp(0px,3vw,42px)}

@media(max-width:850px){
  .shell{width:min(100% - 44px,1160px)}
  nav{gap:.3rem .8rem}
  .nav-action{display:none}
  .hero{gap:25px;min-height:0}
  .theme-yurist .hero,.theme-yurist .hero-media,.theme-yurist .hero-media img{min-height:415px}
}
@media(max-width:620px){
  .shell{width:calc(100% - 32px)}
  .header{gap:7px 16px;align-items:start;flex-wrap:wrap;padding-block:15px}
  .brand{font-size:1.9rem}
  nav{justify-content:start;width:100%;font-size:.83rem}
  .demo-bar .shell{gap:5px 10px;padding-block:5px}
  .demo-bar span{display:none}
  .hero,.theme-psiholog .hero,.theme-fotograf .hero{grid-template-columns:minmax(0,1fr);gap:17px;margin-bottom:54px}
  .hero-copy{padding:11px 0 0}
  .hero .button{margin-top:1.15rem}
  .hero-media img,.theme-psiholog .hero-media img,.theme-stomatologiya .hero-media img,.theme-fotograf .hero-media img{aspect-ratio:5/4;max-height:340px}
  .theme-psiholog .hero-media img{border-radius:90px 90px 18px 18px;object-position:center 36%}
  .theme-yurist .hero{padding:22px 18px 18px}
  .theme-yurist .hero-media,.theme-yurist .hero-media img{height:auto;min-height:0}
  .theme-otel .hero{min-height:440px;padding:25px 19px}
  .theme-otel .hero-media img{aspect-ratio:auto;max-height:none;object-position:62% center}
  .theme-otel .hero::before{background:linear-gradient(0deg,rgba(20,30,24,.94) 10%,rgba(20,30,24,.58) 58%,rgba(20,30,24,.15))}
  .cards,.steps,.portfolio,.panel,.action,.price-layout{grid-template-columns:minmax(0,1fr)}
  .section{margin-bottom:52px}
  .panel,.action{padding:17px}
  .action-card{padding:14px}
  .form-pair{grid-template-columns:minmax(0,1fr)}
  .theme-fotograf .portfolio figure:nth-child(2){margin-top:0}
}
select{
  appearance:none;
  padding-inline-end:2.65rem;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 1.31rem) 52%,calc(100% - 1rem) 52%;
  background-size:.32rem .32rem;
  background-repeat:no-repeat
}
