:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#1d2733;
  --muted:#65758b;
  --brand:#1f7a4d;
  --brand2:#0f4f35;
  --line:#e2e8f0;
  --accent:#ffb020;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial, Helvetica, sans-serif;color:var(--text);background:var(--bg);line-height:1.55}
a{color:inherit;text-decoration:none}
.container{width:min(1180px, calc(100% - 32px));margin:0 auto}
.topbar{background:#0f2d3d;color:#fff;font-size:14px}
.topbar .container{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 0;flex-wrap:wrap}
.header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.header .container{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:var(--brand2)}
.logo-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff;font-weight:900}
.nav{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:14px}
.nav a{padding:8px 10px;border-radius:10px;color:#344256}
.nav a:hover{background:#edf5f0;color:var(--brand2)}
.hero{background:linear-gradient(135deg,#13394d 0%,#1f7a4d 100%);color:#fff;padding:64px 0 54px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center}
.hero h1{font-size:44px;line-height:1.08;margin:0 0 18px}
.hero p{font-size:19px;color:#e9f7ef;margin:0 0 26px}
.badges{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}
.badge{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:8px 12px;border-radius:999px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 18px;border-radius:12px;font-weight:700;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--accent);color:#1f2937}
.btn-secondary{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff}
.hero-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:22px;padding:24px;box-shadow:0 16px 40px rgba(0,0,0,.16)}
.hero-card h2{margin:0 0 14px;font-size:24px}
.checklist{margin:0;padding:0;list-style:none}
.checklist li{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.checklist li:last-child{border-bottom:none}
.section{padding:48px 0}
.section h2{font-size:32px;margin:0 0 12px}
.lead{color:var(--muted);font-size:18px;margin:0 0 24px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(15,45,61,.05)}
.card h3{margin:0 0 10px;font-size:21px}
.card p{color:var(--muted);margin:0 0 16px}
.card a.more{font-weight:700;color:var(--brand)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.list{margin:0;padding-left:20px;color:#344256}
.list li{margin:8px 0}
.notice{background:#fff7df;border:1px solid #ffd887;border-radius:18px;padding:20px}
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line)}
.table th,.table td{padding:14px;border-bottom:1px solid var(--line);text-align:left}
.table th{background:#edf5f0}
.footer{background:#0f2d3d;color:#dce8ee;padding:34px 0;margin-top:30px}
.footer .container{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
.footer h3{color:#fff;margin-top:0}
.small{font-size:13px;color:#8da2b2}
.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:18px}
.breadcrumbs a{color:var(--brand)}
.page-hero{padding:42px 0;background:#fff;border-bottom:1px solid var(--line)}
.page-hero h1{font-size:38px;margin:0 0 12px}
.page-hero p{font-size:18px;color:var(--muted);margin:0}
@media (max-width:900px){
  .hero-grid,.two-col,.footer .container{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:34px}
}
@media (max-width:620px){
  .grid{grid-template-columns:1fr}
  .header .container{align-items:flex-start;flex-direction:column}
  .nav{justify-content:flex-start}
  .hero{padding:42px 0}
}
/* Фото материалов */
.hero-side{display:flex;flex-direction:column;gap:16px}
.auto-photo{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(31,122,77,.16),rgba(15,45,61,.14));border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:#214056;font-weight:800;text-align:center}
.auto-photo img{width:100%;height:100%;object-fit:cover;display:block}
.auto-photo span{padding:18px}
.hero-photo{height:230px;border-radius:22px;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;box-shadow:0 16px 40px rgba(0,0,0,.14)}
.card-photo{height:165px;border-radius:14px;margin:-6px -6px 16px}
.page-photo{height:300px;border-radius:22px;margin-top:22px}
.material-card{padding:18px}
.material-card h3{margin-top:0}
.auto-photo.has-image{background:#e9eef5;color:transparent}
@media (max-width:900px){.hero-photo{height:220px}.page-photo{height:240px}}
@media (max-width:620px){.card-photo{height:190px}.page-photo{height:210px}}


.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.photo-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .photo-gallery img {
    height: 240px;
  }
}

/* Mobile navigation + lead form, 2026-08-28 */
@media (max-width:620px){
  .header .container{display:block;padding:10px 0}
  .logo{margin-bottom:8px}
  .nav{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    justify-content:flex-start;
    gap:6px;
    padding:2px 0 6px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .nav a{
    flex:0 0 auto;
    white-space:nowrap;
    padding:8px 10px;
    background:#f8fafc;
    border:1px solid var(--line);
  }
  .hero h1{font-size:32px}
  .section{padding:36px 0}
  .btn{min-height:46px}
}
.lead-form-section{padding:48px 0;background:#eef5f1}
.lead-form-wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;align-items:start}
.lead-form-copy h2{margin:0 0 12px;font-size:32px}
.lead-form-copy p{margin:0;color:var(--muted);font-size:17px}
.lead-form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 24px rgba(15,45,61,.06);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-field{margin-bottom:14px}
.form-field label{display:block;font-weight:700;margin-bottom:6px}
.form-field input,.form-field textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:12px 13px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.form-field textarea{min-height:120px;resize:vertical}
.form-field input:focus,.form-field textarea:focus{outline:2px solid rgba(31,122,77,.18);border-color:var(--brand)}
.form-note{font-size:13px;color:var(--muted);margin:8px 0 0}
.form-status{margin-top:12px;font-weight:700}
.form-status.ok{color:var(--brand2)}
.form-status.error{color:#a11}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:760px){
  .lead-form-wrap,.form-row{grid-template-columns:1fr}
  .lead-form-copy h2{font-size:28px}
}

/* Live public catalog, 2026-08-28 */
.live-catalog-section{background:#fff}
.live-catalog-head{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:20px}
.live-catalog-head h2{margin-bottom:6px}
.live-catalog-head .lead{margin:0}
.catalog-city-wrap{min-width:210px}
.catalog-city-wrap label{display:block;font-weight:700;margin-bottom:6px}
.catalog-city-wrap select{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;background:#fff;font:inherit;color:var(--text)}
.live-price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.live-price-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--card);box-shadow:0 6px 18px rgba(15,45,61,.05);display:flex;flex-direction:column}
.live-price-brand{font-size:12px;font-weight:800;color:var(--brand);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.live-price-card h3{font-size:18px;line-height:1.3;margin:0 0 10px}
.live-price-spec{font-size:14px;color:var(--muted);margin:0 0 14px;min-height:42px}
.live-price-value{font-size:25px;font-weight:900;color:var(--brand2);margin-top:auto}
.live-price-value span{font-size:14px;font-weight:600;color:var(--muted)}
.live-price-date{font-size:12px;color:var(--muted);margin:5px 0 14px}
.live-price-card .btn{align-self:flex-start}
.catalog-info{font-size:13px;color:var(--muted);margin:14px 0 0}
@media (max-width:900px){
  .live-price-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .live-catalog-head{display:block}
  .catalog-city-wrap{margin-top:14px;min-width:0}
  .live-price-grid{grid-template-columns:1fr}
  .live-price-spec{min-height:0}
  .live-price-value{font-size:24px}
  .live-price-card .btn{width:100%}
}


/* Catalog calculator, 2026-08-28 */
.catalog-calc{margin-top:18px;border:1px solid var(--line);border-radius:18px;padding:20px;background:#f8fbf9;box-shadow:0 8px 24px rgba(15,45,61,.05)}
.catalog-calc[hidden]{display:none}
.catalog-calc-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.catalog-calc-head h3{margin:0;font-size:20px}
.catalog-calc-close{border:0;background:#e8eef1;color:#344256;border-radius:10px;width:36px;height:36px;font-size:24px;line-height:1;cursor:pointer}
.catalog-calc-grid{display:grid;grid-template-columns:minmax(180px,.55fr) 1.45fr;gap:16px;align-items:stretch;margin-bottom:16px}
.catalog-calc-grid label{display:block;font-weight:700}
.catalog-calc-grid input{width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:12px;padding:12px 13px;font:inherit;background:#fff}
.catalog-calc-grid input:focus{outline:2px solid rgba(31,122,77,.18);border-color:var(--brand)}
.catalog-calc-result{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;line-height:1.65;color:#344256}
.catalog-calc-result strong{font-size:19px;color:var(--brand2)}
.catalog-calc [data-calc-lead]:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:620px){
  .catalog-calc{padding:16px}
  .catalog-calc-grid{grid-template-columns:1fr}
  .catalog-calc [data-calc-lead]{width:100%}
}

/* Public AI assistant, 2026-08-28 */
.site-ai{position:fixed;right:18px;bottom:18px;z-index:80;font-family:Arial,Helvetica,sans-serif}
.site-ai-launch{
  border:0;border-radius:999px;padding:13px 17px;background:var(--brand2);color:#fff;
  font:700 15px/1 Arial,sans-serif;box-shadow:0 10px 30px rgba(15,45,61,.28);cursor:pointer
}
.site-ai-panel{
  position:absolute;right:0;bottom:58px;width:min(390px,calc(100vw - 28px));height:min(570px,calc(100vh - 100px));
  background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 22px 60px rgba(15,45,61,.25);
  overflow:hidden
}
.site-ai-panel:not([hidden]){display:flex;flex-direction:column}
.site-ai-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;background:#0f2d3d;color:#fff}
.site-ai-head strong{display:block;font-size:17px}.site-ai-head span{display:block;font-size:12px;color:#cfe1e8;margin-top:3px}
.site-ai-close{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:2px 6px}
.site-ai-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);background:#f8fafc}
.site-ai-tools label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.site-ai-tools select{border:1px solid #cbd5e1;border-radius:9px;padding:7px 8px;background:#fff;color:var(--text)}
.site-ai-reset{border:0;background:transparent;color:var(--brand);font-weight:700;cursor:pointer;padding:7px 4px}
.site-ai-messages{flex:1;overflow:auto;padding:14px;background:#f5f7fb}
.site-ai-msg{display:flex;margin-bottom:10px}.site-ai-msg.user{justify-content:flex-end}
.site-ai-msg>div{max-width:88%;padding:10px 12px;border-radius:14px;white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.45}
.site-ai-msg.assistant>div{background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px}
.site-ai-msg.user>div{background:#1f7a4d;color:#fff;border-bottom-right-radius:5px}
.site-ai-compose{display:flex;gap:8px;padding:11px;border-top:1px solid var(--line);background:#fff;align-items:flex-end}
.site-ai-compose textarea{flex:1;resize:none;max-height:110px;border:1px solid #cbd5e1;border-radius:11px;padding:10px 11px;font:14px/1.4 Arial,sans-serif;color:var(--text)}
.site-ai-compose textarea:focus{outline:2px solid rgba(31,122,77,.15);border-color:var(--brand)}
.site-ai-send{border:0;border-radius:11px;background:var(--accent);color:#1f2937;font-weight:800;cursor:pointer;padding:11px 12px;min-height:42px}
.site-ai-send:disabled{opacity:.6;cursor:wait}
.site-ai-lead{margin:0 11px 8px;border:1px solid var(--brand);border-radius:10px;background:#fff;color:var(--brand2);font-weight:800;padding:9px 12px;cursor:pointer}
.site-ai-note{text-align:center;font-size:11px;color:var(--muted);padding:0 10px 10px;background:#fff}
@media(max-width:620px){
  .site-ai{right:10px;bottom:10px}
  .site-ai-launch{padding:13px 15px}
  .site-ai-panel{position:fixed;left:8px;right:8px;bottom:66px;width:auto;height:min(610px,calc(100vh - 78px));border-radius:18px}
  .site-ai-tools{align-items:flex-start;flex-direction:column}
  .site-ai-tools label{width:100%;justify-content:space-between}
  .site-ai-tools select{min-width:150px}
  .site-ai-msg>div{max-width:92%}
}
