:root {
  --green: #0AB54A;
  --green-dark: #078a37;
  --green-soft: #e8f8ee;
  --red: #E83838;
  --red-soft: #fdecec;
  --ink: #0f1f17;
  --text: #3b4a42;
  --muted: #6b7a72;
  --line: #e3ebe6;
  --bg: #ffffff;
  --bg-alt: #f5faf7;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 31, 23, .08);
  --shadow-lg: 0 24px 60px rgba(15, 31, 23, .14);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(10, 181, 74, .35); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(232, 56, 56, .3); }
.btn-red:hover { background: #cf2a2a; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link { font-weight: 600; font-size: .94rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a.link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); transition: width .25s;
}
.nav a.link:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button {
  background: none; border: 0; padding: 7px 13px; font-weight: 700; font-size: .8rem; color: var(--muted);
}
.lang button.active { background: var(--green); color: #fff; }
.header .btn { padding: 10px 20px; font-size: .9rem; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; background:
  radial-gradient(900px 500px at 90% -10%, rgba(10, 181, 74, .16), transparent 60%),
  radial-gradient(600px 400px at -5% 100%, rgba(232, 56, 56, .08), transparent 60%),
  #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 .accent { color: var(--green); }
.hero h1 .dot { color: var(--red); }
.hero p.lead { font-size: 1.2rem; margin: 24px 0 36px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-partner {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .86rem; font-weight: 700; color: var(--ink);
}
.badge-partner i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #e9b36a, #b87333); display: grid; place-items: center; color: #fff; font-style: normal; font-size: .8rem; }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.hero-card .row:last-child { border: 0; }
.hero-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; flex: none; }
.hero-card .ic.red { background: var(--red-soft); color: var(--red); }
.hero-card .ic svg { width: 24px; height: 24px; }
.hero-card strong { color: var(--ink); display: block; line-height: 1.3; }
.hero-card small { color: var(--muted); }
.hero-float {
  position: absolute; right: -14px; bottom: -26px; background: var(--green); color: #fff; border-radius: 20px;
  padding: 16px 22px; box-shadow: var(--shadow-lg); font-weight: 700; line-height: 1.3;
}
.hero-float span { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-dot { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: var(--red); left: -26px; top: -26px; opacity: .95; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .item { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.strip .item:last-child { border: 0; }
.strip b { display: block; font-size: 1.6rem; color: var(--green); font-weight: 800; line-height: 1.2; }
.strip span { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid p + p { margin-top: 16px; }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.about-panel {
  background: linear-gradient(145deg, var(--green), var(--green-dark)); border-radius: 28px; padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.about-panel::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--red); right: -50px; top: -50px; opacity: .9; }
.about-panel h3 { color: #fff; font-size: 1.5rem; position: relative; z-index: 1; margin-bottom: 26px; }
.steps { list-style: none; display: grid; gap: 20px; position: relative; z-index: 1; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: center; font-weight: 600; }
.steps li::before {
  content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--green-dark);
  display: grid; place-items: center; font-weight: 800;
}

/* Cards / services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; margin-bottom: 22px; }
.card:nth-child(2) .ic { background: var(--red-soft); color: var(--red); }
.card .ic svg { width: 28px; height: 28px; }
.card p { margin: 12px 0 22px; flex: 1; }
.card .more { font-weight: 700; color: var(--green-dark); display: inline-flex; gap: 8px; align-items: center; }
.card .more::after { content: '→'; transition: transform .2s; }
.card:hover .more::after { transform: translateX(5px); }

/* Bitrix24 tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab {
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); font-size: .92rem;
  transition: .2s;
}
.tab:hover { border-color: var(--green); }
.tab.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(10, 181, 74, .3); }
.tab-panel { display: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; animation: fade .35s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 1.6rem; margin-bottom: 12px; }
.tab-panel ul { list-style: none; display: grid; gap: 12px; }
.tab-panel li { padding-left: 28px; position: relative; }
.tab-panel li::before { content: ''; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tab-panel li:nth-child(even)::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.benefit { text-align: center; padding: 30px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.benefit .num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 14px; }
.benefit:nth-child(2) .num { background: var(--red); }
.benefit p { margin-top: 8px; font-size: .95rem; }

.bitrix-note {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: 24px; padding: 34px 40px;
}
.bitrix-note h3 { color: #fff; margin-bottom: 6px; }
.bitrix-note p { color: #c4d1ca; max-width: 640px; }

/* Split sections (IT, Web) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split.rev .split-intro { order: 2; }
.split-intro { position: sticky; top: 110px; }
.split-intro p { margin-top: 16px; font-size: 1.05rem; }
.split-intro .btn { margin-top: 28px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s;
}
.mini:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.mini .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; margin-bottom: 16px; }
.mini:nth-child(2n) .ic { background: var(--red-soft); color: var(--red); }
.mini .ic svg { width: 24px; height: 24px; }
.mini h4 { font-size: 1.08rem; margin-bottom: 8px; }
.mini p { font-size: .95rem; }

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: left; transition: .25s; display: block; width: 100%;
}
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cert .img { border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1.414; background: var(--bg-alt); }
.cert img { width: 100%; height: 100%; object-fit: cover; }
.cert h4 { font-size: .95rem; margin: 14px 4px 2px; }
.cert small { color: var(--muted); margin: 0 4px 4px; display: block; font-size: .82rem; }
.cert.featured { grid-column: span 1; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 14, .88); display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.contact-list a, .contact-list div { display: flex; gap: 16px; align-items: center; font-weight: 600; color: var(--ink); }
.contact-list .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; flex: none; transition: .2s; }
.contact-list li:nth-child(even) .ic { background: var(--red-soft); color: var(--red); }
.contact-list a:hover .ic { background: var(--green); color: #fff; }
.contact-list svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.socials { display: flex; gap: 12px; margin-top: 30px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: .2s; color: var(--ink); }
.socials a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 22px; font-size: 1.5rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 4px; accent-color: var(--green); }
.consent a { color: var(--green-dark); text-decoration: underline; }
.form .btn { width: 100%; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--green-dark); font-weight: 700; display: none; }

/* Footer */
.footer { background: var(--ink); color: #b5c4bc; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo-box { display: inline-block; }
.footer .logo-box img { height: 56px; }
.footer p { margin-top: 18px; font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: .93rem; }
.footer a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem;
}
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Privacy page */
.page-hero { padding: 70px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.prose { max-width: 820px; padding: 60px 0 90px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--green-dark); text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .split, .split.rev, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.rev .split-intro { order: 0; }
  .split-intro { position: static; }
  .cards { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; gap: 24px; }
  .hero-float { right: 10px; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .header .btn { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 80px; }
  .strip .container { grid-template-columns: 1fr 1fr; }
  .strip .item:nth-child(2) { border-right: 0; }
  .strip .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mini-grid, .form .two { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form, .tab-panel { padding: 26px 22px; }
  .about-panel { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .bitrix-note { padding: 28px 24px; }
  .logo img { height: 40px; }
}

/* Overflow safety */
body { overflow-x: hidden; }
.hero-grid > *, .about-grid > *, .split > *, .contact-grid > *, .tab-panel > * { min-width: 0; }
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .split, .split.rev, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-float { right: 0; }
  .hero-dot { left: -10px; }
}
@media (max-width: 480px) {
  .header .container { gap: 8px; }
  .lang button { padding: 6px 10px; }
}

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 900px; margin-inline: auto; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px; text-align: center; transition: .25s; }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner img { height: 76px; width: auto; margin: 0 auto 26px; object-fit: contain; }
.partner p { margin: 10px 0 22px; }
.pid { display: inline-flex; flex-direction: column; padding: 10px 26px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; line-height: 1.3; }
.pid small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.partner:nth-child(2) .pid { background: var(--red-soft); color: var(--red); }

.footer-partners { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 50px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fp { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fp-logo { background: #fff; border-radius: 12px; padding: 10px 18px; display: grid; place-items: center; height: 58px; }
.fp-logo img { height: 36px; width: auto; }
.fp-id { color: #fff; font-weight: 800; letter-spacing: .05em; text-align: center; line-height: 1.3; }
.fp-id small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa297; font-weight: 700; }
@media (max-width: 640px) { .partners { grid-template-columns: minmax(0, 1fr); } .footer-partners { justify-content: space-between; } }
