:root{
  --bg:#f5f7fb;--card:#fff;--text:#182033;--muted:#6c7484;--line:#e2e7ef;
  --primary:#1848c7;--soft:#edf3ff;--danger:#bd2c2c;--shadow:0 14px 42px rgba(25,35,60,.08);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Inter,Arial,sans-serif;color:var(--text)}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 28px));margin:42px auto 70px}
.hero{text-align:center;margin-bottom:30px}
.hero h1{font-size:clamp(31px,5vw,48px);margin:0 0 12px}
.hero p{color:var(--muted);max-width:720px;margin:auto;line-height:1.6}
.box,.form-card,.summary{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.box{padding:22px;margin-bottom:22px}
h2.title{font-size:19px;margin:0 0 15px}
.categories{display:flex;gap:9px;flex-wrap:wrap}
.cat{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 15px;cursor:pointer}
.cat.active{border-color:var(--primary);background:var(--soft);color:var(--primary);font-weight:700}
.tariffs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}
.tariff{background:#fff;border:2px solid transparent;border-radius:18px;padding:19px;box-shadow:var(--shadow);cursor:pointer;min-height:180px;display:flex;flex-direction:column}
.tariff.active{border-color:var(--primary)}
.badge{font-size:12px;font-weight:700;background:#f0f2f6;padding:5px 9px;border-radius:999px;align-self:flex-start;margin-bottom:11px}
.tariff h3{font-size:17px;margin:0}
.tariff .price{font-size:29px;font-weight:800;margin:12px 0 8px}
.tariff p{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 14px}
.tariff .pick{margin-top:auto;color:var(--primary);font-weight:700;font-size:13px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}
.form-card{padding:27px}
.summary{padding:21px;position:sticky;top:18px}
.selected{background:var(--soft);border-radius:13px;padding:15px 17px;margin-bottom:25px;display:flex;justify-content:space-between;gap:15px}
.selected small{display:block;color:var(--muted);margin-bottom:4px}
.selected strong{color:var(--primary)}
fieldset{border:0;padding:0;margin:0 0 31px}
legend{width:100%;font-size:18px;font-weight:800;border-bottom:1px solid var(--line);padding:0 0 11px;margin-bottom:17px}
.desc{font-size:13px;color:var(--muted);line-height:1.55;margin:-4px 0 17px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.field.full{grid-column:1/-1}
label.field-label{display:block;font-size:14px;font-weight:700;margin-bottom:8px;line-height:1.45}
.req{color:var(--danger)}
.hint{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px;line-height:1.45}
input,select,textarea{width:100%;border:1px solid #d5dbe5;border-radius:11px;padding:12px 13px;background:#fff;outline:none}
textarea{min-height:112px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(24,72,199,.09)}
input[type=file]{background:#fafafa;padding:9px}
.choices{display:flex;flex-wrap:wrap;gap:9px}
.choice{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-size:13px;cursor:pointer}
.choice input{width:auto;margin:0}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#455065;line-height:1.55;margin:11px 0}
.consent input{width:17px;height:17px;flex:0 0 auto;margin-top:2px}
.addon{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:10px}
.addon p{font-size:12px;color:var(--muted);margin:5px 0 0}
.addon input{width:18px;height:18px}
.summary h3{margin:0 0 15px}
.sumrow{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.sumrow span{color:var(--muted)}
.total{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;margin-top:17px}
.total strong{font-size:26px;color:var(--primary)}
.pay{border:0;background:var(--primary);color:white;width:100%;border-radius:11px;padding:14px;font-weight:800;margin-top:18px;cursor:pointer}
.note{color:var(--muted);font-size:11px;line-height:1.5}
.info{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:14px;color:#475569;font-size:13px;line-height:1.6;margin-bottom:18px}
.social-row{display:grid;grid-template-columns:180px 1fr auto;gap:8px;margin-bottom:8px}
.social-row button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 11px;cursor:pointer}
.add-social{border:1px dashed #aab4c5;background:#fff;border-radius:10px;padding:10px 13px;cursor:pointer;color:var(--primary);font-weight:700}
@media(max-width:900px){.tariffs{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}.summary{position:static}}
@media(max-width:620px){.container{width:calc(100% - 18px);margin-top:24px}.tariffs,.fields{grid-template-columns:1fr}.form-card{padding:17px}.selected{flex-direction:column}.social-row{grid-template-columns:1fr}}
