:root {
  --bg: #f6f9fb;
  --card: #ffffff;
  --text: #102033;
  --muted: #5c6b7a;
  --line: #e3edf4;
  --accent: #0f8b8d;
  --accent-dark: #0a6f71;
  --shadow: 0 18px 50px rgba(16, 32, 51, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: white; display: grid; place-items: center; font-weight: 800; }
.brand span { display:block; color: var(--muted); font-size: 13px; margin-top: 2px; }
nav { display: flex; gap: 22px; color: var(--muted); }
nav a { text-decoration: none; }
button, .secondary { font: inherit; }
.nav-cta, .primary, .card-button, .chat-form button {
  border: 0; border-radius: 14px; background: var(--accent); color: white; cursor: pointer; font-weight: 700;
}
.nav-cta { padding: 12px 16px; }
.hero { padding: 72px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.badge { display:inline-flex; padding: 8px 12px; border-radius: 999px; background:#e6f5f5; color: var(--accent-dark); font-weight: 700; font-size: 14px; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 22px 0 16px; }
.lead { font-size: 20px; color: var(--muted); line-height: 1.55; max-width: 680px; }
.hero-actions { display:flex; gap: 14px; margin: 28px 0 24px; flex-wrap: wrap; }
.primary, .secondary, .card-button { padding: 15px 22px; text-decoration: none; display:inline-flex; align-items:center; justify-content:center; }
.primary:hover, .card-button:hover, .nav-cta:hover, .chat-form button:hover { background: var(--accent-dark); }
.secondary { border-radius: 14px; border: 1px solid var(--line); background: white; color: var(--text); font-weight: 700; }
.mini-info { display:flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.mini-info span { background: white; border:1px solid var(--line); padding: 9px 12px; border-radius: 999px; }
.hero-card, .service-card, .contact-box { background: var(--card); border:1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hero-card { padding: 30px; }
.hero-card h2 { margin-top: 0; }
.hero-card ul { padding-left: 20px; color: var(--muted); line-height: 1.7; }
.card-button { width: 100%; margin-top: 12px; }
.section { padding: 52px 0; }
.muted { background: #ecf4f7; }
.section-head { display:flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head h2 { margin:0; font-size: 34px; }
.section-head p { margin:0; color: var(--muted); max-width: 560px; line-height: 1.5; }
.cards { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { padding: 22px; box-shadow: none; }
.service-card h3 { margin: 0 0 10px; }
.service-card p { margin:0; color: var(--muted); line-height:1.5; }
.price-table { background:white; border:1px solid var(--line); border-radius: 24px; overflow:hidden; }
.price-table div { display:flex; justify-content:space-between; gap: 16px; padding: 18px 22px; border-bottom:1px solid var(--line); }
.price-table div:last-child { border-bottom:0; }
.contact-grid { display:grid; grid-template-columns: 1fr .8fr; gap: 24px; align-items: start; }
.contact-grid p { color: var(--muted); }
.contact-box { padding: 28px; box-shadow: none; }
.wide { width: 100%; }
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 50; }
.chat-button { width: 86px; height: 62px; border: 0; border-radius: 22px; background: var(--accent); color: white; box-shadow: var(--shadow); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.chat-button span { font-weight: 900; font-size: 18px; }
.chat-panel { position:absolute; right:0; bottom: 76px; width: min(390px, calc(100vw - 32px)); height: 560px; background:white; border:1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column; }
.chat-header { background: var(--accent); color:white; padding: 18px; display:flex; justify-content:space-between; align-items:center; }
.chat-header span { display:block; font-size: 13px; opacity:.86; margin-top:3px; }
.chat-header button { background: rgba(255,255,255,.18); color:white; border:0; border-radius: 12px; width: 34px; height: 34px; font-size: 24px; cursor:pointer; }
.chat-messages { flex:1; padding:16px; overflow:auto; display:flex; flex-direction:column; gap:10px; background:#f7fbfc; }
.msg { max-width: 86%; padding: 11px 13px; border-radius: 16px; line-height:1.45; white-space:pre-wrap; }
.msg.bot { align-self:flex-start; background:white; border:1px solid var(--line); }
.msg.user { align-self:flex-end; background: var(--accent); color:white; }
.msg.error { align-self:flex-start; background:#fff0f0; border:1px solid #ffd3d3; color:#9a1b1b; }
.chat-form { display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:white; }
.chat-form input { flex:1; min-width:0; border:1px solid var(--line); border-radius: 14px; padding: 13px; outline:none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { padding: 0 14px; }
.chat-note { padding:0 12px 12px; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  nav { display:none; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .section-head { display:block; }
  .section-head p { margin-top: 10px; }
}
@media (max-width: 560px) {
  .nav-cta { display:none; }
  .cards { grid-template-columns: 1fr; }
  .price-table div { flex-direction: column; gap: 6px; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { height: min(560px, calc(100vh - 110px)); }
}
