:root {
  --ink: #182125;
  --muted: #677476;
  --line: #dce4df;
  --paper: #f5f7f6;
  --surface: #fff;
  --graphite: #20292c;
  --graphite-2: #2c393d;
  --green: #9be83c;
  --green-soft: #e9f8cb;
  --violet: #7167d9;
  --violet-soft: #ebe9ff;
  --red: #ff4b3e;
  --shadow: 0 24px 70px rgba(21, 35, 39, .12);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topline { color: #e9f1ed; background: var(--graphite); font-size: 13px; }
.topline-inner { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.topline span { color: #bdc9c6; }
.topline a { color: #fff; font-weight: 800; text-decoration: none; }
header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220, 228, 223, .9); background: rgba(245, 247, 246, .94); backdrop-filter: blur(18px); }
.nav { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 24px; }
.logo-picture { display: inline-flex; width: 230px; min-width: 230px; }
.logo-picture img { width: 100%; max-height: 48px; object-fit: contain; }
.socials { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.social-link { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 900; text-decoration: none; transition: transform .2s ease-out, opacity .2s ease-out; }
.social-link:hover { transform: translateY(-2px); opacity: .86; }
.tiktok { background: var(--ink); }
.youtube { background: var(--red); }
nav { display: flex; align-items: center; gap: 18px; color: #526164; font-size: 13px; font-weight: 700; }
nav a { position: relative; padding: 7px 0; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px; background: var(--green); content: ""; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nav-cta { padding: 12px 16px; border-radius: 10px; background: var(--green); font-weight: 800; white-space: nowrap; }
.nav-cta:hover { background: #a9ef52; }
.menu { display: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 22px; }

main { overflow: hidden; }
.hero { position: relative; padding: 34px 0 76px; }
.hero::before { position: absolute; top: -180px; right: -180px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: var(--violet-soft); content: ""; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 44px; color: var(--muted); font-size: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs span { color: var(--violet); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 58px; align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.kicker::before { width: 28px; height: 3px; background: var(--green); content: ""; }
h1 { max-width: 650px; margin: 18px 0 24px; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.065em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-lead { max-width: 64ch; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { min-height: 52px; padding: 0 21px; border-radius: 11px; font-weight: 800; transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s ease-out; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(21, 35, 39, .14); }
.button-primary { background: var(--red); color: #fff; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--violet); }
.hero-visual { position: relative; padding: 14px; overflow: hidden; border-radius: var(--radius); background: var(--graphite); box-shadow: var(--shadow); }
.hero-visual::after { position: absolute; right: -58px; bottom: -58px; width: 190px; height: 190px; border: 1px solid rgba(155, 232, 60, .34); border-radius: 50%; content: ""; }
.visual-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; padding: 8px 8px 14px; color: #b5c1be; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.visual-top strong { color: var(--green); }
.hero-image { position: relative; z-index: 1; width: 100%; height: 390px; overflow: hidden; border-radius: 11px; background: #fff; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.visual-caption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding: 17px 8px 7px; color: #fff; }
.visual-caption strong { display: block; font-size: 20px; line-height: 1.08; }
.visual-caption span { display: block; max-width: 220px; margin-top: 4px; color: #b5c1be; font-size: 12px; text-align: right; }

section { padding: 84px 0; }
.source { border-top: 1px solid var(--line); background: var(--surface); }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: start; }
.service-article { min-width: 0; max-width: 78ch; }
.service-article > p { margin-bottom: 19px; }
.service-article > p:first-child { font-size: 18px; }
.service-article h2 { margin: 52px 0 20px; font-size: clamp(29px, 4vw, 45px); line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.service-article h3 { margin: 39px 0 15px; font-size: 25px; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.service-article ul, .service-article ol { margin: 20px 0 28px; padding-left: 24px; }
.service-article li { margin: 7px 0; padding-left: 3px; }
.service-article li::marker { color: var(--violet); font-weight: 900; }
.service-article a { color: #5149ad; font-weight: 700; }
.service-article a:hover { color: var(--red); }
.service-article > p > img:not(.usl-img-thumb) { width: auto; max-width: 100%; height: auto; margin: 26px auto; border-radius: 12px; }
.service-article > p > img[width="100%"] { width: 100%; }
.service-article .price-new, .service-article .product-table { margin: 26px 0 36px; }
.prices-table_wrapper { overflow-x: auto; border-radius: 14px; box-shadow: 0 18px 45px rgba(63, 56, 150, .1); }
.service-article table { width: 100%; min-width: 510px; border-collapse: collapse; background: #fff; }
.service-article th, .service-article td { padding: 14px 17px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.service-article th { color: #bdc9c6; background: var(--graphite); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.service-article td p { margin: 0; }
.service-article .product-table { display: block; width: 100%; min-width: 0; overflow-x: auto; border: 0; border-radius: 14px; }
.service-article .product-table tbody { display: table; width: 100%; min-width: 450px; }
.service-article .product-table td { border-color: var(--line); }
.uslugi-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 29px 0 33px; }
.uslugi-gallery a { display: block; overflow: hidden; border-radius: 11px; background: var(--paper); }
.uslugi-gallery img { width: 100%; height: 145px; object-fit: cover; transition: transform .25s ease-out; }
.uslugi-gallery a:hover img { transform: scale(1.04); }
.service-aside { position: sticky; top: 112px; padding: 24px; border-radius: var(--radius); background: var(--green); }
.service-aside h2 { margin: 0 0 14px; font-size: 28px; line-height: 1; letter-spacing: -.05em; }
.service-aside p { margin-bottom: 20px; color: #40532f; font-size: 14px; }
.aside-cta { display: inline-flex; min-height: 46px; align-items: center; padding: 0 15px; border-radius: 10px; background: var(--graphite); color: #fff !important; text-decoration: none; }
.aside-cta:hover { background: var(--violet); }

.service-stages { margin: 52px 0 26px; padding: 25px; border-radius: var(--radius); background: var(--violet-soft); }
.service-stages_title, .other-cats_title { margin-bottom: 20px; color: var(--ink); font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.service-stages_items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.service-stages_item { min-width: 0; padding: 14px 10px; border-top: 1px solid rgba(24, 33, 37, .2); }
.service-stages_image { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 14px; border-radius: 12px; background: var(--surface); }
.service-stages_image img { width: 27px; height: 27px; object-fit: contain; }
.service-stages_name { font-size: 13px; font-weight: 800; line-height: 1.2; }
.other-cats { margin: 28px 0 0; padding: 25px; border-radius: var(--radius); background: var(--graphite); color: #fff; }
.other-cats_title { color: var(--green); }
.other-cats_items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #4a5759; }
.other-cats_item { background: var(--graphite); }
.other-cats_name a { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; color: #fff; font-size: 14px; text-decoration: none; }
.other-cats_name a span { margin-left: auto; color: var(--green); font-size: 21px; }
.other-cats_name a:hover { background: var(--green); color: var(--ink); }
.other-cats_name a:hover span { color: var(--ink); }

.contact { background: var(--violet-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 56px; align-items: start; }
.contact h2 { max-width: 700px; margin: 12px 0 25px; font-size: clamp(40px, 5.2vw, 68px); line-height: .95; letter-spacing: -.07em; }
.address { margin-top: 34px; padding: 24px; border-radius: var(--radius); background: var(--graphite); color: #fff; box-shadow: 0 18px 40px rgba(21, 35, 39, .14); }
.address::before { display: block; margin-bottom: 18px; color: var(--green); content: "КОНТАКТЫ"; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.address strong { display: block; font-size: 23px; }
.address p { margin: 13px 0 0; color: #c7d2cf; }
.address a { color: #fff; font-weight: 700; text-decoration: none; }
.address a:hover { color: var(--green); }
.contact-form { padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px rgba(63, 56, 150, .12); }
.contact-form h3 { margin-bottom: 6px; font-size: 27px; }
.contact-form > p { margin-bottom: 23px; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 7px; margin-top: 15px; font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); }
textarea { min-height: 104px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(113, 103, 217, .2); border-color: var(--violet); }
.form-submit { width: 100%; margin-top: 22px; border: 0; background: var(--red); color: #fff; cursor: pointer; }
.form-submit:hover { background: #e84237; }
.form-status { min-height: 24px; margin: 12px 0 0 !important; color: #397c27 !important; }

footer { padding: 52px 0 26px; color: #d7e0dc; background: var(--graphite); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
.footer-logo { display: inline-flex; width: 230px; min-height: 44px; align-items: center; }
.footer-logo img { width: 100%; max-height: 48px; object-fit: contain; }
footer p, footer a { color: #98a8a5; font-size: 13px; }
footer a:hover { color: var(--green); }
.footer-title { margin-bottom: 12px; color: #fff; font-weight: 800; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: flex; min-height: 34px; align-items: center; }
.copyright { display: flex; justify-content: space-between; gap: 18px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #3e4b4e; color: #7e908d; font-size: 12px; }
.copyright a { text-decoration: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(18, 27, 30, .9); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { position: relative; width: min(100%, 1100px); max-height: calc(100dvh - 48px); }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 112px); margin: 0 auto; border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .34); object-fit: contain; }
.lightbox-caption { margin: 12px 48px 0; color: #fff; text-align: center; font-size: 14px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; z-index: 1; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 10px 25px rgba(0, 0, 0, .24); }
.lightbox-close:hover { background: #b4f36a; }

:focus-visible { outline: 3px solid rgba(113, 103, 217, .4); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1060px) {
  .nav-cta { display: none; }
  .menu { display: grid; }
  nav { position: absolute; top: 70px; right: 14px; left: 14px; z-index: 30; display: none; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 82px); overflow-y: auto; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; }
  .hero-grid, .source-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 760px; }
  .service-aside { position: static; max-width: 760px; }
  .service-article { max-width: none; }
  .service-stages_items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .topline-inner { flex-direction: column; gap: 2px; }
  .topline-inner > * { max-width: 100%; overflow-wrap: anywhere; }
  header { position: relative; }
  .nav { min-height: 70px; gap: 8px; }
  .logo-picture { width: 155px; min-width: 0; flex: 0 1 155px; }
  .logo-picture img { max-height: 36px; }
  .socials { margin-left: auto; }
  .social-link, .menu { width: 44px; height: 44px; min-width: 44px; }
  .hero { padding: 25px 0 58px; }
  .crumbs { margin-bottom: 31px; line-height: 1.35; }
  h1 { margin-bottom: 19px; font-size: clamp(39px, 11vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; margin-top: 25px; }
  .button { width: 100%; }
  .hero-image { height: 270px; }
  .visual-caption { display: block; }
  .visual-caption span { max-width: none; margin-top: 8px; text-align: left; }
  section { padding: 64px 0; }
  .source-grid { gap: 28px; }
  .service-article h2 { margin-top: 43px; }
  .uslugi-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uslugi-gallery img { height: 160px; }
  .service-stages { padding: 20px; }
  .service-stages_items { grid-template-columns: 1fr 1fr; }
  .other-cats { padding: 20px; }
  .other-cats_items { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { width: 190px; }
  .copyright { flex-direction: column; }
}
@media (max-width: 460px) {
  .uslugi-gallery img { height: 130px; }
  .service-stages_items { grid-template-columns: 1fr; }
  .service-stages_item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
  .service-stages_image { margin-bottom: 0; }
  .service-article table { min-width: 450px; }
}
