
/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", "Segoe UI Symbol", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(81,87,97,0.08) 0%, transparent 55%),              radial-gradient(1000px 800px at 90% 20%, rgba(47,52,59,0.08) 0%, transparent 55%),              #0b0f14;
  overflow-x: hidden;
}



:root {
  --brand: #2f343b;       /* graphite */
  --brand-2: #515761;     /* deep steel */
  --ink: #e5e7eb;         /* light text */
  --muted: #9aa4b2;       /* muted text */
  --card: #12161c;        /* dark card */
  --ring: rgba(81,87,97,0.45);
  --shadow: 0 12px 28px rgba(0,0,0,0.35), 0 6px 12px rgba(0,0,0,0.25);
}



.container { width: min(1160px, 92%); margin: 0 auto; }

/* Header */

header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(11,15,20,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-weight: 700; letter-spacing: .2px; }
.nav .links { display: flex; gap: 16px; align-items: center; }
.nav .links a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.nav .links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav .cta {
  padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
}
.lang { font-weight: 600; color: var(--ink); }

.hamburger { display: none; background: none; border: 0; padding: 6px; }
.hamburger svg { width: 28px; height: 28px; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 10px; padding: 10px 0 16px;
}
.mobile-menu a { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.7); text-decoration: none; color: var(--ink); }
.mobile-menu .cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; }

/* Hero */
.hero {
  padding: 80px 0 40px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05; margin: 0 0 14px;
}
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 800px; }
.hero .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
button.btn, a.btn {
  border: 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; box-shadow: var(--shadow);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn.secondary { background: #0b0f14; color: var(--ink); border: 1px solid rgba(255,255,255,0.12); }

/* Cards */
.grid {
  display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 4;
  background: var(--card); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-2px) scale(1); box-shadow: 0 16px 40px rgba(2,6,23,0.12); }
.card.revealed { opacity: 1; transform: translateY(0) scale(1); }
.card h3 { margin: 10px 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); margin-bottom: 10px;
}
.card .icon svg { width: 22px; height: 22px; }

/* Sections */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 16px; }
.section .muted { color: var(--muted); }

/* Advantages list */
.advantages { display: grid; grid-template-columns: repeat(12,1fr); gap: 14px; }
.advantages .item { grid-column: span 6; background: var(--card); padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); }
.advantages .item strong { display:block; margin-bottom:6px; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(12,1fr); gap: 14px; }
.clients .group { grid-column: span 6; background: var(--card); padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); }
.clients .group h3 { margin-top: 0; }

/* Form */
form.card { grid-column: span 6; }
input, select, textarea {
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(15,23,42,0.15); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
label { font-weight: 600; font-size: 14px; display: block; margin: 8px 0 6px; }

/* Footer */
footer {
  padding: 28px 0 40px; color: var(--muted);
}
footer .row { display:flex; justify-content:space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1024px) {
  .card { grid-column: span 6; }
}
@media (max-width: 720px) {
  .nav .links { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-menu.show { display: flex; }
  .grid { grid-template-columns: repeat(6,1fr); }
  .card, form.card { grid-column: span 6; }
  .advantages .item, .clients .group { grid-column: span 6; }
  .hero { padding-top: 64px; }
}
@media (max-width: 380px){
  .container { width: min(1160px, 94%); }
  .nav .brand span { display: none; } /* keep it tidy on tiny screens */
}


/* Footer link map */
.linkmap { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; width: 100%; margin-top: 12px; }
.linkmap .col { grid-column: span 4; }
.linkmap h4 { margin: 0 0 8px; color: var(--ink); }
.linkmap ul { list-style: none; padding: 0; margin: 0; }
.linkmap li { margin: 6px 0; }
.linkmap a { text-decoration: none; color: var(--muted); }
.linkmap a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .linkmap .col { grid-column: span 6; }
}


/* How-To steps */
.howto-steps { display:grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.howto-steps .step { grid-column: span 4; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); position: relative; }
.howto-steps .num {
  position:absolute; top: -10px; right: -10px; width: 40px; height: 40px; border-radius: 50%;
  display:grid; place-items:center; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff;
  box-shadow: var(--shadow);
}
.howto-steps h3 { margin: 6px 0 6px; font-size: 18px; }
.howto-steps p { margin: 0; color: var(--muted); }
@media (max-width: 1024px){ .howto-steps .step { grid-column: span 6; } }
@media (max-width: 720px){ .howto-steps .step { grid-column: span 6; } }


/* Fancy list items with icons */
.advantages .item, .clients .group {
  display: grid; grid-template-columns: 44px 1fr; align-items: flex-start; gap: 12px;
}
.advantages .item .icon, .clients .group .icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.06);
  display:grid; place-items:center;
}
.advantages .item .icon svg, .clients .group .icon svg { width: 24px; height: 24px; }

/* FAQ collapsible */
.faq details { background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { box-shadow: 0 16px 40px rgba(2,6,23,0.08); }
.faq p { color: var(--muted); margin: 10px 0 2px; }

/* Footer company line and logo */
footer .brandline { display:flex; align-items:center; gap:10px; margin: 8px 0 6px; }
footer .brandline img { width: 22px; height: 22px; }
footer .companyline { font-size: 14px; color: var(--muted); white-space: normal; }
footer .companyline span { margin-right: 10px; }
@media (max-width: 720px){ footer .companyline { font-size: 13px; } }

/* Compact linkmap */
.linkmap h4 { font-size: 14px; }
.linkmap a { font-size: 14px; }
.linkmap li { margin: 2px 0; }


/* Floating CTA */
.fab-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  text-decoration: none; font-weight: 700; box-shadow: var(--shadow);
}
.fab-cta:hover { transform: translateY(-1px); }
@media (max-width: 420px) {
  .fab-cta { right: 12px; bottom: 12px; padding: 10px 14px; font-weight: 600; }
}


/* Overlapping advantages cards */
.advantages.overlap { display:flex; flex-wrap: wrap; gap: 0; position: relative; }
.advantages.overlap .adv-card {
  width: 320px; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
  margin-left: -40px; margin-bottom: 16px; position: relative; transition: transform .25s ease, box-shadow .25s ease, z-index .1s;
  cursor: pointer;
}
.advantages.overlap .adv-card:first-child { margin-left: 0; }
.advantages.overlap .adv-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(2,6,23,0.12); z-index: 2; }
.advantages.overlap .adv-card.expanded { transform: translateY(-6px) scale(1.06); z-index: 3; }
.advantages.overlap .adv-card h4 { margin: 4px 0 8px; font-size: 16px; }
.advantages.overlap .adv-card .why { color: var(--muted); font-size: 14px; }

@media (max-width: 1024px){ .advantages.overlap .adv-card { margin-left: -24px; } }
@media (max-width: 720px){ .advantages.overlap .adv-card { width: 100%; margin-left: 0; } }

footer { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .companyline { color: var(--muted); display:flex; align-items:center; gap:8px; margin-top:6px; }
footer .companyline img { width:18px; height:18px; }
footer .companyline strong { color: var(--ink); }
.linkmap h4 { color: var(--ink); }


/* Footer robust layout */
.linkmap.threecol { display:grid; grid-template-columns: repeat(12,1fr); gap: 20px; }
.linkmap.threecol .col { grid-column: span 4; }
@media (max-width: 960px){ .linkmap.threecol .col { grid-column: span 6; } }
@media (max-width: 640px){ .linkmap.threecol .col { grid-column: span 12; } }
footer .meta { color: var(--muted); }
footer .companyline { color: var(--muted); margin-top: 8px; display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
footer .companyline strong { color: var(--ink); }
footer .companyline img { width:20px; height:20px; }

/* Grouped Advantages */
.adv-groups { display:grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.adv-group { grid-column: span 4; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.adv-group h3 { margin: 4px 0 8px; font-size: 18px; }
.adv-item { display:grid; grid-template-columns: 28px 1fr; gap:10px; margin: 10px 0; }
.adv-item .dot { width:28px; height:28px; border-radius:10px; display:grid; place-items:center; background: rgba(255,255,255,0.06); }
.adv-item h4 { margin: 0; font-size: 15px; }
.adv-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1024px){ .adv-group { grid-column: span 6; } }
@media (max-width: 720px){ .adv-group { grid-column: span 12; } }

/* Clients with filters */
.client-filters { display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0 8px; }
.client-filters button { padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,0.12); background:#0b0f14; color:var(--ink); cursor:pointer; }
.client-filters button.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
.client-cards { display:grid; grid-template-columns: repeat(12,1fr); gap: 14px; }
.client-card { grid-column: span 6; background: var(--card); border-radius:16px; padding:14px 16px; box-shadow: var(--shadow); position:relative; overflow:hidden; }
.client-card .badge { position:absolute; top:10px; right:10px; font-size:12px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,0.06); }
.client-card .title { display:flex; align-items:center; gap:10px; }
.client-card .title .icon { width:36px; height:36px; border-radius:12px; background:rgba(255,255,255,0.06); display:grid; place-items:center; }
.client-card .title h3 { margin:0; }
.client-card p { margin:8px 0 0; color: var(--muted); }
@media (max-width: 720px){ .client-card { grid-column: span 12; } }


/* Icon sizing fixes */
.adv-item .dot svg { width: 18px; height: 18px; }
.client-card .title .icon svg { width: 20px; height: 20px; }

/* Hero buttons arrangement */
.actions .btn + .btn { margin-left: 8px; }
.btn.telegram { background: transparent; border: 1px solid rgba(255,255,255,0.2); }
.btn.telegram:hover { background: rgba(255,255,255,0.06); }

/* Color accents for icons */
.adv-group:nth-of-type(1) { --accent: #6ee7ff; }
.adv-group:nth-of-type(2) { --accent: #a78bfa; }
.adv-group:nth-of-type(3) { --accent: #f59e0b; }
.adv-item .dot { background: linear-gradient(135deg, var(--accent), rgba(255,255,255,0.08)); }
.adv-item .dot svg { width:18px; height:18px; fill: #0b0f14; }

.client-card[data-cat="real"] .icon { background: linear-gradient(135deg,#6ee7ff,#93c5fd); }
.client-card[data-cat="wh"] .icon { background: linear-gradient(135deg,#34d399,#a7f3d0); }
.client-card[data-cat="retail"] .icon { background: linear-gradient(135deg,#f472b6,#fbcfe8); }
.client-card[data-cat="horeca"] .icon { background: linear-gradient(135deg,#f59e0b,#fde68a); }
.client-card .title .icon svg { width:20px; height:20px; fill: #0b0f14; }

/* Colorful icon blocks */
.card .ico { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; margin-bottom:8px; }
.card .ico svg { width:22px; height:22px; fill:#0b0f14; }

/* Services icons palette by card order */
#services .grid .card:nth-of-type(1) .ico { background: linear-gradient(135deg,#6ee7ff,#93c5fd); }
#services .grid .card:nth-of-type(2) .ico { background: linear-gradient(135deg,#34d399,#a7f3d0); }
#services .grid .card:nth-of-type(3) .ico { background: linear-gradient(135deg,#f59e0b,#fde68a); }
#services .grid .card:nth-of-type(4) .ico { background: linear-gradient(135deg,#a78bfa,#d8b4fe); }
#services .grid .card:nth-of-type(5) .ico { background: linear-gradient(135deg,#f472b6,#fbcfe8); }
#services .grid .card:nth-of-type(6) .ico { background: linear-gradient(135deg,#60a5fa,#93c5fd); }

/* How we work icons palette by step order */
#howto .grid .card:nth-of-type(1) .ico { background: linear-gradient(135deg,#6ee7ff,#93c5fd); }
#howto .grid .card:nth-of-type(2) .ico { background: linear-gradient(135deg,#a78bfa,#d8b4fe); }
#howto .grid .card:nth-of-type(3) .ico { background: linear-gradient(135deg,#f59e0b,#fde68a); }
#howto .grid .card:nth-of-type(4) .ico { background: linear-gradient(135deg,#34d399,#a7f3d0); }
#howto .grid .card:nth-of-type(5) .ico { background: linear-gradient(135deg,#60a5fa,#93c5fd); }
#howto .grid .card:nth-of-type(6) .ico { background: linear-gradient(135deg,#f472b6,#fbcfe8); }
#howto .grid .card:nth-of-type(7) .ico { background: linear-gradient(135deg,#fca5a5,#fecaca); }
#howto .grid .card:nth-of-type(8) .ico { background: linear-gradient(135deg,#34d399,#86efac); }

/* Make sure icons don't overflow */
.adv-item .dot svg, .client-card .title .icon svg { max-width:100%; max-height:100%; }

/* HOTFIX: показываем формы при любых раскладах */
main form, .card form, form.card {
  display: block !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}
form input, form textarea, form select, form button, .btn.telegram {
  display: inline-block !important;
  visibility: visible !important;
}


/* ===== v21 consolidated ===== */
.brand { display:flex; align-items:center; gap:12px; }
a.brand, a.brand:visited, a.brand span { color:#e7ebf0 !important; text-decoration:none !important; }

/* brief page */
.page-brief .card, .page-brief .card:hover { transform:none !important; transition:none !important; }
.page-brief form.card .grid { display:grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap:16px; }
@media (max-width: 1200px) { .page-brief form.card .grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 680px) { .page-brief form.card .grid { grid-template-columns: 1fr; } }
.page-brief input, .page-brief textarea, .page-brief select { width:100%; max-width:100%; box-sizing:border-box; }
.page-brief .checkline { display:flex; align-items:center; gap:10px; margin:8px 0; }
.page-brief .checkline input[type="checkbox"] { width:18px; height:18px; flex:0 0 18px; }

/* contact page */
.page-contact .grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap:16px; }
@media (max-width:1100px){ .page-contact .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:720px){ .page-contact .grid { grid-template-columns: 1fr; } }
.page-contact .card, .page-contact .card:hover { transform:none !important; transition:none !important; }
.page-contact form.card input, .page-contact form.card textarea, .page-contact form.card select { width:100%; max-width:100%; box-sizing:border-box; }
.page-contact .contact-list { list-style:none; margin:0; padding:0; }
.page-contact .contact-list li { margin:8px 0; }
.btn.hollow { background:transparent; border:1px solid rgba(255,255,255,.25); color:#e7ebf0; }

/* services + clients */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); } }
@media (max-width: 680px)  { .service-grid { grid-template-columns: 1fr; } }

.service-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #121821; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.service-card:hover { background: #141b24; border-color: rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.icon-badge { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; backdrop-filter: blur(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.icon-badge svg { width: 28px; height: 28px; fill: none; stroke-width: 2; }
.badge-teal{background:linear-gradient(135deg,#0c574b,#169d86);} .badge-cyan{background:linear-gradient(135deg,#0c3f57,#1db5ff);} .badge-vio{background:linear-gradient(135deg,#3a2b6b,#8b5cf6);} .badge-amber{background:linear-gradient(135deg,#5a3a08,#f59e0b);} .badge-red{background:linear-gradient(135deg,#5a1420,#ef4444);} .badge-blue{background:linear-gradient(135deg,#0e2a5a,#3b82f6);}
.service-card h3 { margin: 0 0 8px; font-size: 22px; } .service-card p { margin: 0; color: #a7b4c2; }

.clients-grid { display: grid; grid-template-columns: repeat(2, minmax(420px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 980px) { .clients-grid { grid-template-columns: 1fr; } }
.client-card { background:#121821; border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:16px; position:relative; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.client-card:hover { background:#141b24; border-color:rgba(255,255,255,.14); }
.client-card h4 { margin:0 0 10px; font-size:20px; }
.client-pills { position:absolute; top:16px; right:16px; display:flex; gap:8px; flex-wrap:wrap; }
.pill { font-size:12px; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:#cfe0ee; }
.client-bullets { margin:8px 0 0; padding-left:18px; color:#a7b4c2; }
.client-bullets li { margin:6px 0; } .client-bullets li::marker { color:#86efac; }

/* hero + advantages */
.hero { padding: 56px 0 20px; }
.hero h1 { font-size: 56px; line-height: 1.05; margin: 0 0 14px; }
.hero p  { font-size: 22px; color:#a7b4c2; margin: 0 0 22px; max-width: 980px; }
.hero .cta-row { display:flex; gap:14px; flex-wrap:wrap; }

.advantages-grid { display:grid; grid-template-columns: repeat(3, minmax(280px,1fr)); gap:18px; }
@media (max-width: 1100px){ .advantages-grid { grid-template-columns: repeat(2, minmax(260px,1fr)); } }
@media (max-width: 720px){  .advantages-grid { grid-template-columns: 1fr; } }

.adv-card { display:grid; grid-template-columns: 56px 1fr; gap:16px; background:#121821; border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:18px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.adv-card h3 { margin:0 0 8px; font-size:22px; }
.adv-card ul { margin:6px 0 0 18px; color:#a7b4c2; }
.adv-card li { margin:6px 0; }
