/* CloudHome.ge — საჯარო საიტი.
   ფერები და შრიფტი აპლიკაციის ტოკენებს იმეორებს, რომ საიტიდან
   კაბინეტში გადასვლა ერთი პროდუქტის შეგრძნებას ინარჩუნებდეს. */

:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-900: #312e81;

  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f8fafc;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px -12px rgb(15 23 42 / 0.12);
  --wrap: 1120px;

  --font: 'Noto Sans Georgian', 'BPG Arial', Sylfaen, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ─────────────────────────── თავსართი ─────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  color: var(--ink-soft); font-size: 15px; padding: 8px 12px;
  border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--brand-600); font-weight: 600; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

/* ─────────────────────────── ღილაკები ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--canvas); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ─────────────────────────── ჰერო ─────────────────────────── */

.hero {
  background:
    radial-gradient(900px 400px at 15% -10%, var(--brand-100), transparent 65%),
    radial-gradient(700px 380px at 90% 0%, #e0f2fe, transparent 60%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 76px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--brand-200);
  color: var(--brand-700); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }

/* ─────────────────────────── სექციები ─────────────────────────── */

.section { padding: 76px 0; }
.section-alt { background: var(--canvas); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 44px; max-width: 62ch; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 33px);
  letter-spacing: -0.015em; font-weight: 700;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ─────────────────────────── ბადე და ბარათები ─────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 21px; height: 21px; }

/* გადანომრილი სია — თავმჯდომარის მოვალეობები */
.numbered { counter-reset: n; }
.numbered .card::before {
  counter-increment: n; content: counter(n);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 15px;
  background: var(--brand-600); color: #fff; font-weight: 700; font-size: 15px;
}

/* ─────────────────────────── ტექსტური გვერდები ─────────────────────────── */

.page-head { border-bottom: 1px solid var(--line); background: var(--canvas); padding: 54px 0 44px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--ink-soft); max-width: 66ch; }

.prose { max-width: 74ch; padding-block: 56px; }
.prose h2 {
  margin: 40px 0 12px; font-size: 20px; font-weight: 650;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 650; }
.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 650; }

/* ─────────────────────────── ფორმები ─────────────────────────── */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend {
  padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--ink-muted); margin-top: 5px; }

input, select, textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
input:invalid:not(:placeholder-shown) { border-color: #dc2626; }
textarea { resize: vertical; min-height: 118px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px; background: var(--canvas);
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px;
}
.total .label { font-size: 14px; color: var(--ink-soft); }
.total .value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

.form-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; display: none;
}
.form-note.ok { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.form-note.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ─────────────────────────── კონტაქტი ─────────────────────────── */

.contact-item { display: flex; gap: 13px; margin-bottom: 22px; }
.contact-item .ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center;
}
.contact-item .ico svg { width: 19px; height: 19px; }
.contact-item .k { font-size: 13px; color: var(--ink-muted); }
.contact-item .v { font-weight: 600; }

/* ─────────────────────────── ქვესართი ─────────────────────────── */

.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); font-size: 15px; }
.footer-grid a:hover { color: var(--brand-600); }
.footer-about p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 42ch; }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  color: var(--ink-muted); font-size: 14px;
}
.cards { display: flex; gap: 8px; align-items: center; }
.cards span {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface);
}

/* ─────────────────────────── მობილური ─────────────────────────── */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 54px 0; }
  .field-row { grid-template-columns: 1fr; }
}

/* ─────────────────────── ჰერო: ორი სვეტი და ტელეფონი ─────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 { max-width: 14ch; }

/* ჩამონათვალი ღილაკების ქვეშ — რას იღებს კლიენტი, ერთი შეხედვით */
.trust {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.trust li {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--ink-soft);
}
.trust li::before {
  content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ── აპლიკაციის ეკრანი ──
   სურათის ნაცვლად HTML: ნებისმიერ ეკრანზე მკვეთრია, არაფერს ტვირთავს
   და ტექსტის შეცვლა კოდშივე ხდება. */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 100%; max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgb(15 23 42 / .04), 0 30px 60px -24px rgb(49 46 129 / .35);
  transform: rotate(-1.2deg);
}

.phone-top {
  display: flex; align-items: center; gap: 11px;
  background: #0f172a; color: #fff; padding: 20px 18px 26px;
}
.phone-top .avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(255 255 255 / .12);
  -webkit-mask: none;
}
.phone-top b { display: block; font-size: 14px; font-weight: 600; }
.phone-top small { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

.phone-body { padding: 0 14px 18px; margin-top: -14px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 12px;
  box-shadow: 0 4px 14px -8px rgb(15 23 42 / .25);
}
.tile small { display: block; font-size: 10.5px; color: var(--ink-muted); }
.tile b { display: block; font-size: 17px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tile.ok b { color: #15803d; }

.door {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 12px; margin-bottom: 9px;
}
.door b { display: block; font-size: 13.5px; font-weight: 600; }
.door small { display: block; font-size: 11px; color: var(--ink-muted); }
.door-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-50);
  position: relative;
}
.door-ico::after {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h3a2 2 0 0 1 2 2v14M2 20h3M13 2v20l-8-2V4z'/%3E%3Cpath d='M10 12v.01'/%3E%3C/svg%3E") center/17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h3a2 2 0 0 1 2 2v14M2 20h3M13 2v20l-8-2V4z'/%3E%3Cpath d='M10 12v.01'/%3E%3C/svg%3E") center/17px no-repeat;
}
.door-ico.lift::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 7l3-3 3 3M9 17l3 3 3-3'/%3E%3C/svg%3E") center/17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 7l3-3 3 3M9 17l3 3 3-3'/%3E%3C/svg%3E") center/17px no-repeat;
}

.rowline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2px; font-size: 12.5px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.rowline b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.rowline b.pos { color: #15803d; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { max-width: 18ch; }
  .phone { transform: none; max-width: 300px; }
}

@media (max-width: 560px) {
  .hero-visual { display: none; }
}

/* ნავიგაციის ღილაკი: `.nav-links a` სელექტორი უფრო მძიმეა, ვიდრე
   `.btn-primary`, და თეთრ ტექსტს ლურჯ ფონზე მუქით ცვლიდა */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  background: var(--brand-600);
}
.nav-links a.btn-primary:hover { background: var(--brand-700); }
