:root {
      --paper: #f5f7f6;
      --surface: #fff;
      --ink: #182125;
      --muted: #61706f;
      --line: #dce4df;
      --graphite: #20292c;
      --graphite-2: #2c393d;
      --green: #9be83c;
      --green-soft: #e9f8d6;
      --violet: #7167d9;
      --violet-soft: #ebeafd;
      --red: #ff4b3e;
      --max: 1180px;
      --radius: 20px;
      --shadow: 0 18px 45px rgba(21,35,39,.1);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; }
    body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    body.modal-open { overflow: hidden; }
    a { color: inherit; }
    button, input, textarea { font: inherit; }
    button { border: 0; cursor: pointer; }
    .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
    .topline { background: var(--graphite); color: #e9f1ed; font-size: 13px; }
    .topline-inner { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
    .topline span { opacity: .82; }
    .topline a { font-weight: 800; text-decoration: none; }
    header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220,228,223,.85); background: rgba(245,247,246,.94); backdrop-filter: blur(18px); }
    .nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .logo-picture { display: inline-flex; width: 230px; min-width: 230px; align-items: center; text-decoration: none; }
    .logo-picture img { display: block; width: 100%; max-height: 48px; object-fit: contain; }
    .socials { display: flex; align-items: center; gap: 8px; }
    .social-link, .menu { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 900; color: #fff; }
    .tiktok { background: var(--ink); }
    .youtube { background: var(--red); }
    .social-link:hover { transform: translateY(-2px); }
    .menu { display: none; background: transparent; color: var(--ink); font-size: 24px; }
    header nav { display: flex; align-items: center; gap: 18px; color: #526164; font-size: 13px; font-weight: 700; }
    header nav a { position: relative; padding: 7px 0; text-decoration: none; white-space: nowrap; }
    header nav a:hover, header nav a.active { color: var(--ink); }
    header nav a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px; background: var(--green); }
    .nav-cta { padding: 12px 16px; border-radius: 10px; background: var(--green); font-weight: 800; text-decoration: none; white-space: nowrap; }
    .page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
    .page-hero::after { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; border-radius: 50%; background: var(--violet-soft); top: -190px; right: -120px; }
    .crumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
    .crumbs a { text-decoration: none; }
    .kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--violet); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
    .kicker::before { content: ""; width: 28px; height: 3px; background: var(--green); }
    h1, h2, h3, p { margin-top: 0; }
    h1 { max-width: 850px; margin: 18px 0 22px; font-size: clamp(48px, 7vw, 88px); line-height: .94; letter-spacing: -.055em; }
    .lead { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
    .summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
    .summary span { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.75); font-size: 13px; font-weight: 800; }
    .summary b { color: var(--violet); }
    .reviews { padding: 26px 0 88px; }
    .reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
    .reviews-head h2 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.045em; }
    .reviews-head p { max-width: 430px; margin: 0; color: var(--muted); }
    .review-list { display: grid; gap: 18px; }
    .review-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(21,35,39,.045); }
    .review-card:nth-child(3n+2) { background: var(--violet-soft); border-color: #d3d0f5; }
    .review-card:nth-child(3n) { background: var(--green-soft); border-color: #cfe9ad; }
    .document { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 3 / 4.15; border: 1px solid rgba(24,33,37,.12); border-radius: 12px; background: #fff; box-shadow: 0 14px 28px rgba(21,35,39,.12); }
    .document img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
    .document:hover img { transform: scale(1.025); }
    .document::after { content: "Открыть скан"; position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(32,41,44,.88); color: #fff; text-align: center; font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
    .document:hover::after, .document:focus-visible::after { opacity: 1; transform: translateY(0); }
    .review-body { position: relative; min-width: 0; padding: 8px 14px 4px 48px; }
    .quote { position: absolute; top: -8px; left: 0; color: var(--violet); font: 800 64px/1 Georgia, serif; }
    .review-card:nth-child(3n) .quote { color: #4f8c27; }
    .review-body h3 { margin-bottom: 16px; font-size: clamp(18px, 2.1vw, 26px); line-height: 1.08; letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
    .review-body p { color: #364446; }
    .review-body strong { color: var(--ink); }
    .review-author { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(24,33,37,.14); color: var(--ink); font-size: 14px; font-style: normal; font-weight: 800; }
    .contact { padding: 78px 0; background: var(--violet-soft); }
    .contact-grid { display: grid; grid-template-columns: 1fr .86fr; gap: 56px; align-items: start; }
    .contact h2 { margin: 15px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: .96; letter-spacing: -.045em; }
    .address { position: relative; overflow: hidden; margin: 35px 0 0; padding: 24px; border: 1px solid var(--graphite-2); border-radius: 18px; background: var(--graphite); color: #fff; box-shadow: 0 18px 40px rgba(21,35,39,.14); }
    .address::before { content: "КОНТАКТЫ"; display: block; margin-bottom: 18px; color: var(--green); 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[href^="tel:"] { display: inline-flex; min-height: 46px; align-items: center; margin: 4px 0; padding: 10px 14px; border: 1px solid #526164; border-radius: 10px; background: var(--graphite-2); }
    .address a[href^="tel:"]:hover { border-color: var(--green); background: var(--green); color: var(--ink); }
    .contact-form { padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 20px 60px rgba(63,56,150,.12); }
    .contact-form h3 { margin-bottom: 6px; font-size: 26px; letter-spacing: -.025em; }
    .contact-form > p { margin-bottom: 24px; 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: 47px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); }
    textarea { min-height: 108px; resize: vertical; }
    input:focus, textarea:focus { outline: 3px solid rgba(113,103,217,.2); border-color: var(--violet); }
    .form-submit { width: 100%; min-height: 54px; margin-top: 22px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; }
    .form-status { min-height: 24px; margin: 12px 0 0 !important; color: #397c27 !important; }
    footer { padding: 52px 0 26px; background: var(--graphite); color: #d7e0dc; }
    .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
    .footer-logo { display: inline-flex; width: 230px; }
    .footer-logo img { display: block; 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: 7px; }
    .copyright { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3e4b4e; color: #7e908d; font-size: 12px; }
    dialog { width: min(920px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
    dialog::backdrop { background: rgba(16,22,24,.78); backdrop-filter: blur(6px); }
    .modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .modal-title { margin: 0; font-size: 14px; font-weight: 800; }
    .modal-close { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); font-size: 24px; }
    .modal-image-wrap { max-height: calc(100dvh - 100px); overflow: auto; padding: 16px; text-align: center; }
    .modal-image { display: block; max-width: 100%; height: auto; margin: 0 auto; }
    @media (max-width: 1080px) {
      header nav { gap: 10px; }
      .nav-cta { display: none; }
      .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    }
    @media (max-width: 900px) {
      .nav { min-height: 70px; gap: 10px; }
      .logo-picture { width: 155px; min-width: 155px; min-height: 44px; }
      .social-link, .menu { width: 44px; height: 44px; }
      .menu { display: grid; }
      header nav { display: none; position: absolute; top: 70px; right: 14px; left: 14px; z-index: 30; max-height: calc(100dvh - 82px); overflow-y: auto; flex-direction: column; align-items: stretch; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
      header nav.open { display: flex; }
      header nav a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; }
      .review-card { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
    }
    @media (max-width: 680px) {
      html, body { overflow-x: clip; }
      .wrap { width: auto; margin-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
      .topline { font-size: 12px; line-height: 1.4; }
      .topline-inner { flex-direction: column; gap: 2px; padding-block: 8px; overflow-wrap: anywhere; }
      .nav { min-height: 64px; gap: 8px; }
      .logo-picture { width: clamp(132px, 42vw, 155px); min-width: 0; flex: 0 1 155px; }
      .logo-picture img { max-height: 36px; }
      .socials { flex: 0 0 auto; gap: 6px; margin-left: auto; }
      header nav { top: 64px; max-height: calc(100dvh - 76px); }
      .page-hero { padding: 42px 0 46px; }
      .crumbs { margin-bottom: 20px; }
      h1 { font-size: clamp(42px, 16vw, 64px); }
      .lead { font-size: 16px; }
      .summary { display: grid; grid-template-columns: 1fr 1fr; }
      .reviews { padding: 10px 0 58px; }
      .reviews-head { display: block; }
      .reviews-head p { margin-top: 15px; }
      .review-card { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
      .document { width: min(100%, 310px); margin: 0 auto; }
      .document::after { opacity: 1; transform: none; }
      .review-body { padding: 4px 2px 2px 42px; }
      .quote { font-size: 56px; }
      .review-body h3 { font-size: 19px; }
      .contact { padding: 58px 0; }
      .contact h2 { font-size: clamp(34px, 10vw, 44px); }
      .address { margin-top: 24px; padding: 20px; }
      .address strong { font-size: 20px; }
      .address a[href^="tel:"] { width: 100%; justify-content: flex-start; }
      .contact-form { padding: 20px; }
      .footer-grid { grid-template-columns: 1fr; gap: 26px; }
      .footer-logo, .footer-links a, .copyright > a { min-height: 44px; display: flex; align-items: center; }
      .copyright { flex-direction: column; margin-top: 28px; }
    }
    @media (max-width: 359px) {
      .logo-picture { width: 124px; flex-basis: 124px; }
      .nav { gap: 5px; }
      .summary { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    }
