:root{
      --bg: rgb(238, 235, 238);
      --text: #0e1a12;
      --muted: rgba(14,26,18,.68);
      --line: rgba(14,26,18,.12);

      --brand: #009245;
      --brand-2: #009c38;
      --brand-soft: rgba(0,146,69,.10);
      --brand-soft-2: rgba(0,156,56,.08);

      --card: rgb(238, 235, 238);
      --shadow: 0 18px 60px rgba(0,0,0,.10);
      --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
      --radius: 18px;
      --radius-sm: 12px;

      --max: 1120px;
      --pad: clamp(16px, 3vw, 28px);
      --h1: clamp(28px, 4.4vw, 52px);
      --h2: clamp(22px, 3.2vw, 34px);
      --h3: clamp(18px, 2.4vw, 22px);
      --p: 16px;
    }

    *{ box-sizing: border-box; }
    html{ scroll-behavior: smooth; }
      body{
        margin:0;
        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
        color: var(--text);
        background:
          radial-gradient(1200px 600px at 12% 8%, var(--brand-soft) 0%, transparent 60%),
          radial-gradient(900px 480px at 92% 12%, var(--brand-soft-2) 0%, transparent 55%),
          linear-gradient(180deg, #fff 0%, #fff 45%, #fbfbfb 100%);
      }

    a{ color: inherit; text-decoration: none; }
    .container{ width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

    /* header */
    .topbar{
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(10px);
      background: rgba(238, 235, 238, .78);
      border-bottom: 1px solid var(--line);
    }
    .topbar-inner{
      display:flex; align-items:center; justify-content:space-between;
      height: 74px;
      gap: 14px;
    }
    .brand{
      display:flex; align-items:center; gap: 12px; min-width: 220px;
    }
    .brand-logo{
      width: 46px; height: 46px; border-radius: 12px;
      background: #fff;
      box-shadow: 0 10px 22px rgba(0,0,0,.10);
      display:grid; place-items:center;
      overflow:hidden;
    }
    .brand-logo img{ width: 100%; height: 100%; object-fit: cover; }
    .brand-title{
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: .2px;
    }
    .brand-sub{
      display:block;
      font-weight: 600;
      color: var(--muted);
      font-size: 13px;
      margin-top: 3px;
    }

    .nav{
      display:flex; align-items:center; gap: 8px;
    }
    .nav a{
      padding: 10px 12px;
      border-radius: 12px;
      font-weight: 650;
      color: rgba(14,26,18,.82);
    }
    .nav a:hover{ background: rgba(0,146,69,.08); }

    .header-actions{
      display:flex; align-items:center; gap: 10px;
    }

    .btn{
      display:inline-flex; align-items:center; justify-content:center; gap: 10px;
      padding: 12px 16px;
      border-radius: 14px;
      border: 1px solid transparent;
      font-weight: 750;
      cursor:pointer;
      transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
      user-select:none;
      white-space: nowrap;
    }
    .btn:active{ transform: translateY(1px); }
    .btn-primary{
      background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
      color: #fff;
      box-shadow: 0 16px 40px rgba(0,146,69,.28);
    }
    .btn-primary:hover{ box-shadow: 0 18px 55px rgba(0,146,69,.34); }
    .btn-ghost{
      background: rgba(238, 235, 238, .65);
      border-color: rgba(0,146,69,.22);
      color: rgba(14,26,18,.86);
    }
    .btn-ghost:hover{ background: rgba(0,146,69,.06); }

    /* GF45 premium button */
    .gf45-btn{
      /* Match site primary green (like соседняя кнопка) */
      /* Requested base color */
      --g1: rgb(0,110,40);
      --g2: rgb(0,110,40);
      --g3: rgb(0,110,40);
      --metal: rgb(207,202,202);

      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:.5rem;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      font: inherit;

      padding:14px 26px;
      border-radius:999px;
      position:relative;
      text-decoration:none;
      user-select:none;
      -webkit-tap-highlight-color:transparent;
      transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
      filter: none;

      /* chrome frame */
      border:1px solid var(--metal);
      box-shadow:
        0 10px 26px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 -2px 6px rgba(0,0,0,.28);
      background: rgb(0,110,40);
    }

    /* When gf45-btn is used as a tariff selector, don't let .tariff-btn override layout */
    .gf45-btn.tariff-btn{
      display: inline-flex;
      justify-content: center;
    }

    /* chrome ring */
    .gf45-btn::before{
      content:"";
      position:absolute;
      inset:-2px;
      border-radius:999px;
      background: transparent;
      border: 2px solid var(--metal);
      z-index:0;
      pointer-events: none;
    }

    /* inner ring cutout */
    .gf45-btn::after{
      content:"";
      position:absolute;
      inset:2px;
      border-radius:999px;
      /* remove the inner white haze */
      background: transparent;
      z-index:1;
      pointer-events:none;
      mix-blend-mode: normal;
    }

    .gf45-btn .gf45-btn__text{
      position:relative;
      z-index:2;

      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
      font-weight:700;
      letter-spacing:.2px;

      /* metallic / embossed text (requested color) */
      color: var(--metal) !important;
      -webkit-text-fill-color: var(--metal);
      text-shadow:
        0 1px 0 rgba(0,0,0,.60),
        0 2px 0 rgba(0,0,0,.28),
        0 10px 18px rgba(0,0,0,.22);
    }

    /* subtle sparkles */
    .gf45-btn .gf45-btn__text::before,
    .gf45-btn .gf45-btn__text::after{
      content:"";
      position:absolute;
      width:10px; height:10px;
      border-radius:50%;
      background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%);
      opacity:.45;
      filter: blur(.2px);
      pointer-events:none;
    }
    .gf45-btn .gf45-btn__text::before{ top:-8px; left:-10px; }
    .gf45-btn .gf45-btn__text::after{ bottom:-8px; right:-14px; opacity:.35; }

    /* hover / focus */
    .gf45-btn:hover{
      transform: translateY(-1px);
      box-shadow:
        0 14px 34px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.40),
        inset 0 -2px 10px rgba(0,0,0,.35);
      background: rgb(0,110,40);
    }
    .gf45-btn:active{
      transform: translateY(0px);
      box-shadow:
        0 10px 22px rgba(0,0,0,.38),
        inset 0 2px 10px rgba(0,0,0,.45);
      background: rgb(0,110,40);
    }
    .gf45-btn:focus-visible{
      outline: none;
      box-shadow:
        0 14px 34px rgba(0,0,0,.40),
        0 0 0 3px rgba(0,146,69,.35),
        inset 0 1px 0 rgba(255,255,255,.40),
        inset 0 -2px 10px rgba(0,0,0,.35);
    }

    /* optional sizes */
    .gf45-btn--lg{ padding:16px 30px; }
    .gf45-btn--sm{ padding:10px 18px; font-size:14px; }

    .burger{
      display:none;
      width: 44px; height: 44px;
      flex: 0 0 44px;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-radius: 14px;
      border: 1px solid rgba(0,146,69,.22);
      background: rgba(255,255,255,.65);
      cursor:pointer;
    }
    .burger span{
      display:block; width: 18px; height: 2px; background: rgba(14,26,18,.78);
      margin: 6px auto;
      border-radius: 2px;
    }

    /* mobile menu */
    .mobile-nav{
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 70;
      max-height: 0;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      overflow: hidden;
      transform: translateY(-8px);
      border-top: 1px solid transparent;
      padding: 0 var(--pad);
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(10px);
      transition: max-height .28s ease, opacity .2s ease, transform .2s ease, visibility .2s ease, padding .2s ease;
    }
    .mobile-nav.is-open{
      max-height: 420px;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
      border-top-color: var(--line);
      padding: 10px var(--pad) 14px;
    }
    .mobile-nav a{
      display:block;
      padding: 12px 12px;
      border-radius: 12px;
      font-weight: 700;
      color: rgba(14,26,18,.86);
    }
    .mobile-nav a:hover{ background: rgba(0,146,69,.08); }
    .mobile-actions{ display:flex; gap: 10px; padding: 10px 0 0; flex-wrap: wrap; }

    /* hero */
    .hero{ padding: clamp(26px, 5vw, 56px) 0 18px; }
    .hero-grid{
      display:grid;
      grid-template-columns: 1fr;
      gap: 26px;
      align-items: stretch;
    }
      .hero-card{
        border-radius: var(--radius);
        background: rgba(255,255,255,.82);
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: var(--shadow);
        overflow:hidden;
      position: relative;
    }
    .hero-left{ padding: clamp(18px, 3.5vw, 34px); }
    .kicker{
      display:inline-flex; gap: 10px; align-items:center;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(0,146,69,.08);
      border: 1px solid rgba(0,146,69,.16);
      color: rgba(14,26,18,.86);
      font-weight: 750;
      font-size: 13px;
    }
    .kicker-dot{
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--brand);
      box-shadow: 0 0 0 4px rgba(0,146,69,.18);
    }
    h1{
      margin: 14px 0 10px;
      font-size: var(--h1);
      line-height: 1.05;
      letter-spacing: -.4px;
	  width: 100%;
      max-width: 100%;   /* убрать ограничение */
    }
    .lead{
      margin: 0;
      font-size: 17px;
      line-height: 1.55;
      color: var(--muted);
    }
    .hero-pills{
      margin-top: 18px;
      display:flex;
      flex-direction: column;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: flex-start;
    }
    .pill{
      display:inline-flex; align-items:center; gap: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.7);
      border: 1px solid rgba(0,0,0,.06);
      box-shadow: var(--shadow-soft);
      font-weight: 700;
      color: rgba(14,26,18,.84);
      font-size: 16px;
      width: min(520px, 100%);
      justify-content: flex-start;
      transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    }
    .pill:hover{
      transform: none;
      box-shadow: var(--shadow-soft);
    }
    .pill svg,
    .pill img{
      width: 22px;
      height: 22px;
      color: var(--brand);
      display: block;
      transition: transform .2s ease;
    }
    .pill:hover svg,
    .pill:hover img{
      transform: scale(1.12);
    }
    .hero-cta{
      margin-top: 18px;
      display:flex;
      gap: 22px;
      flex-wrap: wrap;
      align-items:center;
    }
    .hero-cta .gf45-btn{
      min-width: 260px;
      justify-content: center;
      text-align: center;
    }

    /* Calc panel CTAs: equal-size buttons aligned to the block width */
    .calc-cta{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      width: 100%;
      align-items: stretch;
    }
    .calc-cta .gf45-btn{
      width: 100%;
      min-height: 44px;
    }
    .calc-cta .gf45-btn__text{
      white-space: nowrap;
    }
    @media (max-width: 640px){
      .calc-cta{ grid-template-columns: 1fr; }
    }
    .hero-note{
      margin-top: 10px;
      font-size: 13px;
      color: rgba(14,26,18,.64);
      line-height: 1.45;
    }

    .hero-right{
      padding: 18px;
      display:flex;
      flex-direction: column;
      gap: 14px;
    }
    .mini-card{
      border-radius: 16px;
      background: rgb(238, 235, 238);
      border: 1px solid rgba(0,0,0,.06);
      box-shadow: var(--shadow-soft);
      padding: 16px;
      transition: all 0.3s ease;
    }
    .mini-title{
      font-weight: 850;
      letter-spacing: -.2px;
      margin: 0 0 8px;
      font-size: 16px;
    }
    .mini-text{
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }
    .mini-grid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .stat{
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(0,146,69,.10) 0%, rgb(238, 235, 238) 100%);
      border: 1px solid rgba(0,146,69,.14);
      padding: 14px;
      min-height: 92px;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    .stat:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 146, 69, .2);
      border-color: var(--brand);
      background: linear-gradient(180deg, rgba(0,146,69,.15) 0%, rgb(238, 235, 238) 100%);
    }
    .stat:hover b {
      color: var(--brand);
    }
    .stat b{
      display:block;
      font-size: 22px;
      letter-spacing: -.3px;
      margin-bottom: 4px;
      transition: color 0.3s ease;
    }
    .stat span{
      color: rgba(14,26,18,.72);
      font-weight: 650;
      font-size: 13px;
      line-height: 1.35;
      display:block;
    }

    /* sections */
    section{ padding: 30px 0; }
    .section-head{
      display:flex;
      align-items:flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }
    h2{ margin: 0; font-size: var(--h2); letter-spacing: -.25px; }
    .section-sub{
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      max-width: 70ch;
      font-size: 15px;
      white-space: normal;
    }

    /* Startup services intro should use the full content width */
    #startup-services .section-sub{
      max-width: none;
      width: 100%;
      display: block;
    }
    #startup-services .section-head > div{
      width: 100%;
      max-width: 100%;
      flex: 1 1 100%;
    }

    /* Services heading: fit in one line on web */
    #uslugi .section-head h2{
      font-size: 28px;
      white-space: nowrap;
      letter-spacing: -0.2px;
    }
    @media (max-width: 1200px){
      #uslugi .section-head h2{
        font-size: 24px;
      }
    }

    .grid-3{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    .card{
      border-radius: var(--radius);
      background: rgb(238, 235, 238);
      border: 1px solid rgba(0,0,0,.06);
      box-shadow: var(--shadow-soft);
      padding: 18px;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
      border-color: var(--brand);
      background: rgb(238, 235, 238);
    }
    .card h3{
      margin: 0 0 8px;
      font-size: var(--h3);
      letter-spacing: -.15px;
      transition: color 0.3s ease;
    }
    .card:hover h3 {
      color: var(--brand);
    }
    .card p{ margin: 0; color: var(--muted); line-height: 1.55; }

    /* services */
    .service-list{
      display:grid;
  grid-template-columns: 1fr;
      gap: 14px;
    }
      .service{
        display:flex; gap: 12px;
        padding: 16px;
        border-radius: 18px;
        border: 1px solid rgba(0,0,0,.06);
        background: rgb(238, 235, 238);
        box-shadow: var(--shadow-soft);
        align-items:flex-start;
        transition: all 0.3s ease;
        cursor: pointer;
      }
      .service:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
        border-color: var(--brand);
        background: rgb(238, 235, 238);
      }
      .service:hover .icon {
        background: transparent;
        transform: scale(1.1);
        box-shadow: none;
      }
      .service:hover .icon svg,
      .service:hover .icon img {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
        transform: scale(1.05);
      }
      .service:hover b {
        color: var(--brand);
      }
    .icon{
      width: 64px; height: 64px; border-radius: 14px;
      background: transparent;
      border: none;
      box-shadow: none;
      display:grid; place-items:center;
      flex: 0 0 auto;
      transition: all 0.3s ease;
      position: relative;
      overflow: visible;
    }
    .icon::before {
      display: none;
    }
    .icon svg,
    .icon img{ 
      width: 40px; height: 40px; 
      color: #ffffff; 
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
      transition: all 0.3s ease;
      position: relative;
      z-index: 1;
      display: block;
    }
    .service b{ display:block; font-size: 16px; margin-bottom: 5px; letter-spacing: -.15px; }
    .service span{ color: var(--muted); line-height: 1.5; font-size: 14px; display:block; }

    /* calculator */
    .calc-wrap{
      display:grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: start;
    }
      .calc-panel{
        border-radius: var(--radius);
        background: rgb(238, 235, 238);
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: var(--shadow);
        padding: 18px;
        transition: all 0.3s ease;
      }
      .calc-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
        border-color: var(--brand);
        background: rgb(238, 235, 238);
      }
    .calc-row{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 12px;
    }
    label{
      display:block;
      font-weight: 750;
      color: rgba(14,26,18,.86);
      font-size: 13px;
      margin-bottom: 8px;
    }
      .field{
        width: 100%;
        padding: 12px 12px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,.10);
        background: rgb(238, 235, 238);
        outline: none;
        font-size: 15px;
      }
    .field:focus{
      border-color: rgba(0,146,69,.45);
      box-shadow: 0 0 0 4px rgba(0,146,69,.12);
    }
    .range{
      width: 100%;
      accent-color: var(--brand);
    }
    .hint{
      margin: 8px 0 0;
      color: rgba(14,26,18,.62);
      font-size: 13px;
      line-height: 1.45;
    }
    .result{
      margin-top: 14px;
      border-radius: 18px;
      padding: 16px;
      background: linear-gradient(180deg, rgba(0,146,69,.12) 0%, rgb(238, 235, 238) 100%);
      border: 1px solid rgba(0,146,69,.18);
    }
    .price{
      display:flex; align-items: baseline; justify-content: space-between; gap: 12px;
      flex-wrap: wrap;
    }
    .price b{
      font-size: 30px;
      letter-spacing: -.4px;
    }
    .price span{
      color: rgba(14,26,18,.66);
      font-weight: 700;
      font-size: 13px;
    }
    .result ul{
      margin: 10px 0 0;
      padding: 0 0 0 18px;
      color: rgba(14,26,18,.72);
      line-height: 1.5;
      font-size: 14px;
    }
    .result li{ margin: 6px 0; }

    /* calc checkboxes */
    .calc-checkboxes {
      margin-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      cursor: pointer;
      font-size: 14px;
      line-height: 1.5;
      color: var(--text);
    }
    .checkbox-label input[type="checkbox"] {
      margin-top: 2px;
      width: 18px;
      height: 18px;
      cursor: pointer;
      accent-color: var(--brand);
      flex-shrink: 0;
    }

    /* price table */
    .price-table-wrapper {
      margin-top: 24px;
    }
    .price-table-controls {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }
    .price-table-control label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      font-size: 14px;
      color: var(--text);
    }
    .price-table {
      overflow-x: auto;
    }
    .price-table table {
      width: 100%;
      border-collapse: collapse;
      background: rgb(238, 235, 238);
      border-radius: var(--radius-sm);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
    }
    .price-table thead {
      background: var(--brand-soft);
    }
    .price-table th {
      padding: 14px 16px;
      text-align: left;
      font-weight: 700;
      font-size: 15px;
      color: var(--text);
      border-bottom: 2px solid var(--brand);
    }
    .price-table td {
      padding: 12px 16px;
      font-size: 15px;
      color: var(--text);
      border-bottom: 1px solid var(--line);
    }
    .price-table tbody tr:last-child td {
      border-bottom: none;
    }
    .price-table tbody tr:hover {
      background: var(--brand-soft-2);
    }

    /* tariff VAT */
    .tariff-vat {
      font-size: 12px;
      color: rgba(14,26,18,.6);
      margin-top: 4px;
    }

    /* steps */
    .steps{
      display:grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
    .step{
      padding: 16px;
      border-radius: 18px;
      background: rgb(238, 235, 238);
      transition: all 0.3s ease;
      cursor: pointer;
      border: 1px solid rgba(0,0,0,.06);
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow:hidden;
    }
    .step:before{
      content:"";
      position:absolute;
      inset: -40% -30% auto auto;
      width: 180px; height: 180px;
      background: radial-gradient(circle at 30% 30%, rgba(0,146,69,.18), transparent 60%);
      transform: rotate(12deg);
    }
    .badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width: 32px; height: 32px;
      border-radius: 12px;
      background: rgba(0,146,69,.10);
      border: 1px solid rgba(0,146,69,.16);
      font-weight: 900;
      color: rgba(0,146,69,1);
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
      transition: all 0.3s ease;
    }
    .step:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
      border-color: var(--brand);
      background: rgb(238, 235, 238);
    }
    .step:hover .badge {
      background: var(--brand);
      border-color: var(--brand);
      color: white;
      transform: scale(1.1);
    }
    .step b{ display:block; margin-bottom: 6px; position: relative; z-index:1; transition: color 0.3s ease; }
    .step:hover b {
      color: var(--brand);
    }
    .step p{ margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; position: relative; z-index:1; }

    /* FAQ */
    .faq{
      display:grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    details{
      border-radius: 16px;
      background: rgb(238, 235, 238);
      border: 1px solid rgba(0,0,0,.06);
      box-shadow: var(--shadow-soft);
      padding: 14px 16px;
    }
    summary{
      cursor:pointer;
      font-weight: 850;
      list-style: none;
      display:flex; align-items:center; justify-content: space-between; gap: 12px;
    }
    summary::-webkit-details-marker{ display:none; }
    .chev{
      width: 18px; height: 18px;
      border-radius: 6px;
      display:grid; place-items:center;
      background: rgba(0,146,69,.10);
      border: 1px solid rgba(0,146,69,.16);
      flex: 0 0 auto;
    }
    details[open] .chev{ transform: rotate(180deg); }
    details p{
      margin: 10px 0 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
    }

    /* contacts */
    .contacts{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 14px;
      align-items: start;
    }
      .contact-card{
        border-radius: var(--radius);
        background: rgb(238, 235, 238);
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: var(--shadow);
        padding: 18px;
        transition: all 0.3s ease;
      }
      .contact-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 35px rgba(0, 0, 0, .12);
        border-color: var(--brand);
        background: rgb(238, 235, 238);
      }
    .contact-item{
      display:flex; gap: 12px; align-items:flex-start;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(0,0,0,.06);
      background: rgb(238, 235, 238);
      margin-top: 10px;
    }
    .contact-item b{ display:block; margin-bottom: 4px; }
    .contact-item a{
      color: rgba(0,146,69,1);
      font-weight: 800;
      border-bottom: 1px solid rgba(0,146,69,.35);
    }
    .fineprint{
      margin-top: 12px;
      color: rgba(14,26,18,.60);
      font-size: 12.5px;
      line-height: 1.5;
    }

    footer{
      padding: 18px 0 28px;
      color: rgba(14,26,18,.62);
    }
    .footer-inner{
      border-top: 1px solid var(--line);
      padding-top: 14px;
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    /* responsive */
    @media (max-width: 980px){
      .hero-grid{ grid-template-columns: 1fr; }
      .grid-3{ grid-template-columns: 1fr; }
      .service-list{ grid-template-columns: 1fr; }
      .calc-wrap{ grid-template-columns: 1fr; }
      .steps{ grid-template-columns: 1fr 1fr; }
      .contacts{ grid-template-columns: 1fr; }
      .nav{ display:none; }
      .burger{ display:flex; }
      .mobile-nav{ display:block; }
    }
    @media (min-width: 981px){
      .mobile-nav{ display:none !important; }
    }
    @media (max-width: 520px){
      .mini-grid{ grid-template-columns: 1fr; }
      .calc-row{ grid-template-columns: 1fr; }
      .steps{ grid-template-columns: 1fr; }
      .topbar-inner{ height: 72px; }
      .brand{ min-width: 0; }
      .price-table-controls{ grid-template-columns: 1fr; }
      .brand-title{ font-size: 14px; }
      .brand-sub{ font-size: 12px; }
      .btn{ width: 100%; justify-content: center; }
      .header-actions{ width: 100%; justify-content: flex-end; }
    }
	/* PREMIUM HEADER */

.premium-header {
  background: rgba(238, 235, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}

.brand-premium {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-premium {
  height: 64px;
  width: auto;
  transition: transform .2s ease;
}

.logo-premium:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
}

.brand-city {
  font-size: 15px;
  font-weight: 700;
  color: #009245;
  margin-top: 3px;
}

.nav-premium {
  display: flex;
  gap: 26px;
}

.nav-premium a {
  font-weight: 650;
  color: rgba(14,26,18,.82);
  position: relative;
}

.nav-premium a:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0%;
  background: #009245;
  transition: width .25s ease;
}

.nav-premium a:hover:after {
  width: 100%;
}

.phone-link {
  font-weight: 700;
  color: rgba(14,26,18,.85);
  margin-right: 14px;
}

.btn-premium {
  background: linear-gradient(180deg,#009245 0%,#007a39 100%);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(0,146,69,.28);
  transition: all .2s ease;
  text-decoration: none;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,146,69,.35);
}
.brand-premium {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
}

.brand-left,
.brand-finance {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #111;
}

.brand-right {
  display: flex;
  align-items: center;   /* теперь в одну линию */
  gap: 10px;
}

.logo-premium {
  height: 70px;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.15));
  transition: transform .25s ease;
}

.logo-premium:hover {
  transform: scale(1.05);
}

/* =========================
   Premium header overrides
   ========================= */

.premium-header{
  background: rgba(238, 235, 238, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 88px;
  gap: 20px;
}

.brand-premium{
  display:flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
}

.brand-left,
.brand-finance{
  font-size: 24px;
  font-weight: 850;
  letter-spacing: .4px;
  color: #111;
}

.brand-right{
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}

.brand-city{
  font-size: 18px;
  font-weight: 750;
  color: var(--brand);
  letter-spacing: .6px;
}

.logo-premium{
  height: 62px;
  width: auto;
  display:block;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.14));
  transition: transform .25s ease;
}

.logo-premium:hover{ transform: scale(1.04); }

.nav-premium{
  display:flex;
  gap: 26px;
  align-items:center;
}

.nav-premium a{
  font-weight: 700;
  color: rgba(14,26,18,.82);
  position: relative;
  padding: 8px 4px;
}

.nav-premium a:after{
  content:"";
  position:absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--brand);
  transition: width .25s ease;
}

.nav-premium a:hover:after{ width: 100%; }

.phone-link{
  font-weight: 750;
  color: rgba(14,26,18,.86);
  margin-right: 10px;
  white-space: nowrap;
}

/* hide old nav on desktop (если остался где-то) */
.topbar .nav{ display:none; }

/* =========================
   Banner Hero
   ========================= */

.banner-hero {
  padding: 0;
  background: transparent;
  position: relative;
}

 .banner-hero-wrapper {
   position: relative;
   width: 100%;
   max-width: var(--max);
   margin: 0 auto;
   height: 400px;
   display: flex;
   align-items: center;
   justify-content: flex-end;
   overflow: hidden;
   background: linear-gradient(180deg, rgb(238, 235, 238) 0%, rgb(238, 235, 238) 100%);
   border-radius: var(--radius);
 }

.banner-logo-top {
  position: absolute;
  top: 20px;
  left: var(--pad);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.banner-logo-text-left {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  align-self: center;
}

.banner-logo-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.banner-logo-text-right {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-logo-number {
  font-size: 30px;
  font-weight: 800;
}

.banner-logo-icon {
  width: 90px;
  height: auto;
  display: block;
  margin: 0 2px;
  align-self: center;
}

.banner-logo-subtitle {
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.2;
}

.banner-text-content {
  position: absolute;
  top: 150px;
  left: var(--pad);
  z-index: 10;
  max-width: 600px;
}

.banner-slogan {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-slogan-text {
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: #334155;
  line-height: 1.5;
  letter-spacing: -0.2px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-description p {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: italic;
  position: relative;
}

.banner-quote p {
  font-style: italic;
  color: #475569;
  margin: 0 0 8px 0;
}

.banner-quote p:last-child {
  margin-bottom: 0;
}

.banner-calculate-btn {
  position: absolute;
  bottom: 20px;
  left: var(--pad);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 146, 69, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner-calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 146, 69, 0.4);
}

 .banner-contact-box {
   position: absolute;
   bottom: -20px;
   right: calc(var(--pad) + 140px);
   z-index: 10;
   background: rgba(255, 255, 255, 0.4);
   backdrop-filter: blur(4px);
   padding-top: 5px;
   padding-bottom: 5px;
   padding-right: 5px;
   padding-left: 5px;
   border-radius: 8px;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   display: inline-flex;
   flex-direction: column;
   gap: 2px;
   width: 200px;
 }

.banner-contact-name {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  line-height: 1.72;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner-contact-position {
  font-size: 18px;
  color: #000000;
  font-weight: 500;
  line-height: 1.72;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner-contact-company {
  font-size: 18px;
  color: #000000;
  font-weight: 600;
  line-height: 1.72;
  margin-top: 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.banner-hero-bg {
  position: relative;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right;
  z-index: 1;
}

.banner-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding: 50px var(--pad);
  align-items: flex-start;
}

.banner-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 20px;
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.banner-logo-icon {
  width: 90px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.banner-logo-text {
  display: flex;
  flex-direction: column;
}

.banner-logo-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-logo-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #334155;
  margin: 0 0 24px 0;
  max-width: 85%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-hero-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 80%;
}

.banner-hero-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-hero-btn {
  align-self: flex-start;
  margin-top: 10px;
}

.banner-hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}

.banner-contact-box {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 200px;
  margin-top: auto;
  margin-bottom: 30px;
}

.banner-contact-name {
  font-size: 17px;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-contact-position {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.banner-contact-company {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 980px) {
  .banner-hero-wrapper {
    height: 400px;
  }
  
  .banner-hero-content {
    grid-template-columns: 1fr;
    padding: 40px var(--pad);
    gap: 30px;
  }
  
  .banner-hero-right {
    justify-content: flex-start;
  }
  
  .banner-hero-title {
    max-width: 100%;
  }
  
  .banner-hero-description {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .banner-hero-wrapper {
    /* Mobile: keep the same composition as desktop:
       logo row on top-left, text under it, person clearly visible on the right */
    height: 460px;
    min-height: 0;
    padding: 0;
    display: block;
  }

  .banner-logo-top{
    position: absolute;
    top: 18px;
    left: var(--pad);
    z-index: 3;
    width: auto;
    max-width: calc(100% - (var(--pad) * 2));
  }

  .banner-logo-row{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }

  .banner-logo-text-left,
  .banner-logo-text-right{
    font-size: 28px;
    line-height: 1;
  }

  .banner-logo-text-left{ flex: 0 0 auto; }

  .banner-logo-right-group{
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 0;
  }

  .banner-logo-text-right{ white-space: nowrap; }

  .banner-logo-number{
    font-size: 22px;
  }

  .banner-logo-icon{
    width: 56px;
    margin: 0;
    flex-shrink: 0;
  }

  .banner-logo-subtitle{
    font-size: 14px;
  }

  .banner-text-content{
    position: absolute;
    top: 96px;
    left: var(--pad);
    z-index: 3;
    /* reserve space on the right for the person */
    max-width: min(340px, calc(100% - 230px));
    width: auto;
    margin-top: 0;
  }

  .banner-slogan{
    gap: 10px;
  }

  .banner-slogan-text{
    font-size: 14px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .banner-contact-box{
    position: absolute;
    left: var(--pad);
    bottom: 16px;
    right: auto;
    z-index: 3;
    width: auto;
    max-width: calc(100% - (var(--pad) * 2));
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    margin-top: 0;
  }

  .banner-contact-name{ font-size: 16px; line-height: 1.35; }
  .banner-contact-position{ font-size: 12px; line-height: 1.35; }
  .banner-contact-company{ font-size: 12px; line-height: 1.35; }

  .banner-hero-bg{
    position: absolute;
    right: -40px;
    bottom: -6px;
    height: 88%;
    width: auto;
    opacity: 1;
    filter: none;
    z-index: 1;
    pointer-events: none;
    object-position: right bottom;
    /* keep the person clear on the right, and avoid text overlap */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.92) 26%, #000 42%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.92) 26%, #000 42%, #000 100%);
  }

  @media (max-width: 420px) {
    .banner-hero-wrapper{ height: 460px; }
    .banner-logo-text-left,
    .banner-logo-text-right{ font-size: 24px; }
    .banner-logo-icon{ width: 52px; }
    .banner-logo-subtitle{ font-size: 13px; }
    .banner-text-content{ max-width: min(320px, calc(100% - 200px)); top: 92px; }
    .banner-hero-bg{ right: -52px; height: 86%; bottom: -10px; }
  }
}

/* =========================
   Banner (old)
   ========================= */

.banner{
  padding: clamp(26px, 5vw, 54px) 0 12px;
}

.banner-inner{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  background: url("assets/banner-hero.jpg") center right / contain no-repeat;
  background-color: #f3f4f6;
  aspect-ratio: 3 / 2; /* 1536x1024 */
  width: 100%;
  height: auto;
}

/* CTA button on banner */
.banner-cta{
  position: absolute;
  left: clamp(64px, 6vw, 120px);
  bottom: clamp(72px, 6vw, 140px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(16px, 1.2vw, 20px);
  color: #fff;
  background: linear-gradient(180deg, #0ea45a 0%, #0b7c41 100%);
  box-shadow: 0 14px 26px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.12);
}

.banner-cta:hover{
  filter: brightness(1.03);
}

.banner-cta:active{
  transform: translateY(1px);
}


.banner-brand{
  display:flex;
  align-items:center;
  gap: 10px;
}

.banner-brand-left,
.banner-brand-finance{
  font-size: 28px;
  font-weight: 850;
  letter-spacing: .4px;
}

.banner-logo{
  height: 56px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
}

.banner-brand-right{
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}

.banner-brand-city{
  font-size: 20px;
  font-weight: 750;
  color: var(--brand);
  letter-spacing: .8px;
}

.banner-brand-sub{
  margin-top: 6px;
  font-size: 16px;
  color: rgba(14,26,18,.64);
  font-weight: 650;
}

.banner-title{
  margin: 34px 0 18px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.6px;
  max-width: 18ch;
}

.banner-text{
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(14,26,18,.72);
  max-width: 58ch;
}

.btn-banner{
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 18px;
}

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

/* =========================
   Hero heading tweaks
   ========================= */

.hero-left h1{
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.hero-left{ text-align: left; }
.hero-left .lead{
  margin-left: 0;
  margin-right: 0;
  text-align: justify;
  text-justify: inter-word;
}
.hero-pills{ justify-content: center; }
.hero-cta{ justify-content: center; }

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  .nav-premium{ display:none; }
  .header-inner{ height: 84px; }
}

@media (max-width: 520px){
  .brand-left, .brand-finance{ font-size: 20px; }
  .brand-city{ font-size: 16px; }
  .logo-premium{ height: 54px; }
  .banner-brand-left, .banner-brand-finance{ font-size: 22px; }
  .banner-brand-city{ font-size: 16px; }
  .banner-logo{ height: 48px; }
  .banner-title{ font-size: clamp(26px, 7vw, 34px); max-width: 22ch; }
  .banner-text{ font-size: 15px; }
  .btn-banner{ width: 100%; justify-content:center; }
}

/* =====================================================
   Tariffs Section
   ===================================================== */

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.tariff-card {
  border-radius: var(--radius);
  background: rgb(238, 235, 238);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  position: relative;
  cursor: pointer;
}

.tariff-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .15);
  border-color: var(--brand);
}

.tariff-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 50px rgba(0, 146, 69, .20);
}

.tariff-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 146, 69, .3);
}

.tariff-badge-hit {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  top: -20px;
  right: -20px;
}

.tariff-badge-hit img {
  display: block;
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 80px;
}

.tariff-header {
  padding: 24px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tariff-header-standard {
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: block;
  height: 140px;
  min-height: 140px;
}

.tariff-header-standard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  transform-origin: center;
}

.tariff-header-ekspert {
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: block;
  height: 140px;
  min-height: 140px;
}

.tariff-header-ekspert img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  transform-origin: center;
}

.tariff-header-bisnes,
.tariff-header-premium {
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: block;
  height: 140px;
  min-height: 140px;
}

.tariff-header-bisnes img,
.tariff-header-premium img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(-8px) scale(1.14);
  transform-origin: center;
  will-change: transform;
}

.tariff-card.featured .tariff-header.tariff-header-ekspert {
  background: transparent !important;
  min-height: 0;
}

.tariff-card.featured .tariff-header.tariff-header-ekspert img {
  height: 100% !important;
}

.tariff-card.featured .tariff-header {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.tariff-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.3px;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tariff-prefix {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  opacity: 1;
}

.tariff-amount {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
}

.tariff-amount-small {
  font-size: 20px;
  font-weight: 800;
}

.tariff-currency {
  font-size: 16px;
  font-weight: 700;
  opacity: .95;
}

.tariff-vat {
  font-size: 13px;
  opacity: .85;
  font-weight: 600;
}

.tariff-content {
  padding: 20px;
  flex-grow: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  align-content: space-between;
  border-radius: 0 0 var(--radius) var(--radius);
}

.tariff-features {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.tariff-card-premium .tariff-features {
  width: 212px;
  height: 360px;
  min-height: 360px;
  margin: 0 auto;
}

.tariff-card-premium .tariff-content {
  width: 252px;
  height: 610px;
  min-height: 610px;
  max-height: 610px;
  flex: 0 0 610px;
  margin: 0 auto;
  /* Keep the same bottom alignment behavior as other tariffs */
  grid-template-rows: 1fr auto;
  align-content: space-between;
  gap: 20px;
}

.tariff-features ul {
  flex: 1;
}

.tariff-not-included {
  align-self: end;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.tariff-not-included ul {
  flex: 1;
}

.tariff-suitable {
  align-self: end;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  margin-top: 0;
}

.tariff-card-premium .tariff-suitable {
  align-self: end;
  min-height: 190px;
  /* Fine-tune to align "Подходит для" baseline with other cards' "Не входит в тариф" */
  margin-top: -24px;
}

.tariff-features h4,
.tariff-not-included h4,
.tariff-suitable h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}

.tariff-features ul,
.tariff-not-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tariff-features li,
.tariff-not-included li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tariff-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
  font-size: 16px;
}

.tariff-not-included li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 900;
  font-size: 16px;
}

.tariff-suitable p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tariff-footer {
  padding: 0 20px 20px;
}

.tariff-card-premium .tariff-footer {
  margin-top: 0px;
}

.tariff-btn {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tariff-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.tariff-btn:active {
  transform: scale(0.98);
}

.tariff-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(0, 146, 69, .08);
  border-radius: 12px;
  border: 1px solid rgba(0, 146, 69, .14);
}

.tariff-note p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.tariff-note sup {
  color: var(--brand);
  font-weight: 700;
}

/* Price Factors Section */
.price-factors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

 .price-factor-card {
   border-radius: var(--radius);
   background: rgb(238, 235, 238);
   border: 1px solid rgba(0, 0, 0, .08);
   box-shadow: var(--shadow-soft);
   padding: 24px;
   text-align: center;
   transition: transform .2s ease, box-shadow .2s ease;
 }

.price-factor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .15);
  border-color: var(--brand);
  background: rgb(238, 235, 238);
}
.price-factor-card:hover .price-factor-icon {
  background: transparent;
  transform: scale(1.1);
  box-shadow: none;
}
.price-factor-card:hover .price-factor-icon svg,
.price-factor-card:hover .price-factor-icon img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: scale(1.05);
}
.price-factor-card:hover h3 {
  color: var(--brand);
}

.price-factor-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}
.price-factor-icon::before {
  display: none;
}

.price-factor-icon svg,
.price-factor-icon img {
  width: 56px;
  height: 56px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: block;
}

.price-factor-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}

.price-factor-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Responsive for tariffs */
@media (max-width: 1400px) {
  .tariffs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .tariff-amount {
    font-size: 24px;
  }
  
  .tariff-prefix {
    font-size: 20px;
  }
  
  .tariff-currency {
    font-size: 14px;
  }
  
  .tariff-title {
    font-size: 20px;
  }
  
  .price-factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tariff-features {
    min-height: 300px;
  }
  
  .price-factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Tariff header art on mobile:
     - remove the green underlay (PNG has transparency)
     - make the header height compact
     - crop images so the "plate" sits near the top edge */
  .tariff-header-standard,
  .tariff-header-ekspert,
  .tariff-header-bisnes,
  .tariff-header-premium{
    padding: 0;
    background: transparent !important;
    height: clamp(96px, 24vw, 132px);
    min-height: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
  }

  .tariff-header-standard img,
  .tariff-header-ekspert img,
  .tariff-header-bisnes img,
  .tariff-header-premium img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none !important;
    will-change: auto;
  }

  /* Expert: bleed a bit to fully touch edges */
  .tariff-header-ekspert img{
    transform: scale(1.04) !important;
    transform-origin: center;
  }

  /* Standard/Expert now use pre-cropped header images (see assets/*_header.png),
     so they don't need per-device scale/position hacks. */
  .tariff-header-bisnes img,
  .tariff-header-premium img{
    object-position: center 54%;
    transform: scale(1.10) !important;
    transform-origin: center;
  }

  .tariff-card:hover{
    transform: none;
    box-shadow: var(--shadow);
  }

  .tariff-content{
    padding: 14px;
    gap: 14px;
  }

  .tariff-footer{
    padding: 0 14px 14px;
  }

  .tariff-features h4,
  .tariff-not-included h4,
  .tariff-suitable h4{
    margin: 0 0 10px;
    font-size: 14px;
  }

  .tariff-features li,
  .tariff-not-included li{
    font-size: 13px;
    padding: 6px 0;
    padding-left: 20px;
    line-height: 1.45;
  }

  .tariff-features li::before,
  .tariff-not-included li::before{
    font-size: 14px;
  }

  .tariff-btn{
    width: 100%;
    max-width: none;
  }

  /* Premium card had fixed dimensions; disable them for the 2-column mobile grid */
  .tariff-card-premium .tariff-features{
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .tariff-card-premium .tariff-content{
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    margin: 0;
  }

  .tariff-badge-hit img{
    max-width: 64px;
    max-height: 64px;
  }

  .tariff-features {
    min-height: 0;
  }
  
  .tariff-amount {
    font-size: 22px;
  }
  
  .tariff-prefix {
    font-size: 18px;
  }
  
  .tariff-currency {
    font-size: 13px;
  }
  
  .price-factors-grid {
    grid-template-columns: 1fr;
  }
}

/* Services at Start Section */
.services-start-content {
  margin-top: 24px;
}

.services-start-text {
  max-width: 900px;
}

.services-start-text > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}

.services-start-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-start-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.services-start-item:hover {
  background: rgb(238, 235, 238);
  transform: translateX(5px);
}

.services-start-item:hover .services-start-icon {
  background: transparent;
  transform: scale(1.1);
  box-shadow: none;
}

.services-start-item:hover .services-start-icon svg,
.services-start-item:hover .services-start-icon img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: scale(1.05);
}

.services-start-item:hover h3 {
  color: var(--brand);
}

.services-start-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}
.services-start-icon::before {
  display: none;
}

.services-start-icon svg,
.services-start-icon img {
  width: 40px;
  height: 40px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: block;
}

.services-start-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  transition: color 0.3s ease;
}

.services-start-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Advantages Section */
.advantages-content {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
}

.advantages-image-wrapper {
  grid-column: 1;
  grid-row: 1 / 2;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.advantages-image {
  width: 115%;
  height: auto;
  display: block;
  object-fit: cover;
}

.advantages-grid-left {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  /* Make the right-side cards a bit narrower than the column */
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

/* In startup-services section: make right 3 blocks fill photo height */
#startup-services .advantages-content{
  align-items: stretch;
}
#startup-services .advantages-grid-left{
  height: 100%;
  max-width: none;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
#startup-services .advantages-grid-left .services-start-item{
  height: 100%;
  margin: 0;
  background: rgb(238, 235, 238);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: 20px;
  cursor: default;
  transition: none;
}
#startup-services .advantages-grid-left .services-start-item:hover{
  background: rgb(238, 235, 238);
  transform: none;
}
#startup-services .advantages-grid-left .services-start-item:hover .services-start-icon{
  transform: scale(1.1);
  box-shadow: none;
}
#startup-services .advantages-grid-left .services-start-item:hover .services-start-icon svg,
#startup-services .advantages-grid-left .services-start-item:hover .services-start-icon img{
  transform: scale(1.05);
}
#startup-services .advantages-grid-left .services-start-item:hover h3{
  color: var(--text);
}
#startup-services .advantages-grid-left .services-start-item h3{
  font-size: 22px;
  line-height: 1.25;
}
#startup-services .advantages-grid-left .services-start-item p{
  font-size: 17px;
  line-height: 1.55;
}

.advantages-grid-right {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

 .advantage-card {
   border-radius: var(--radius);
   background: rgb(238, 235, 238);
   border: 1px solid rgba(0, 0, 0, .08);
   box-shadow: var(--shadow-soft);
   padding: 24px;
   text-align: center;
   transition: transform .2s ease, box-shadow .2s ease;
 }

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .15);
  border-color: var(--brand);
  background: rgb(238, 235, 238);
}
.advantage-card:hover .advantage-icon {
  background: transparent;
  transform: scale(1.1);
  box-shadow: none;
}
.advantage-card:hover .advantage-icon svg,
.advantage-card:hover .advantage-icon img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: scale(1.05);
}
.advantage-card:hover h3 {
  color: var(--brand);
}

/* Unified hover policy: no movement animations.
   Keep only color highlight + icon scaling. */
.card,
.service,
.step,
.stat,
.advantage-card,
.services-start-item,
.price-factor-card,
.tariff-card {
  transition: none !important;
}

.card:hover,
.service:hover,
.step:hover,
.stat:hover,
.advantage-card:hover,
.services-start-item:hover,
.price-factor-card:hover,
.tariff-card:hover {
  transform: none !important;
}

/* Keep icon-only hover emphasis */
.service:hover .icon,
.services-start-item:hover .services-start-icon,
.advantage-card:hover .advantage-icon,
.price-factor-card:hover .price-factor-icon {
  transform: scale(1.1) !important;
}

.service:hover .icon svg,
.service:hover .icon img,
.services-start-item:hover .services-start-icon svg,
.services-start-item:hover .services-start-icon img,
.advantage-card:hover .advantage-icon svg,
.advantage-card:hover .advantage-icon img,
.price-factor-card:hover .price-factor-icon svg,
.price-factor-card:hover .price-factor-icon img {
  transform: scale(1.05) !important;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}
.advantage-icon::before {
  display: none;
}

.advantage-icon svg,
.advantage-icon img {
  width: 48px;
  height: 48px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: block;
}

.advantage-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 980px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-start-item {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   Equalize heights ONLY for:
   - #price: left calc panel == right calc panel
   - #contacts: right contact card == left contact card
   Layout positions unchanged
   ===================================================== */

/* PRICE: ensure two panels stretch to same height */
#price .calc-wrap{
  align-items: stretch;
}
#price .calc-wrap > .calc-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
}
#price .calc-wrap > .calc-panel:first-child .result{
  margin-top: auto;
}

/* CONTACTS: ensure two cards stretch to same height */
#contacts .contacts{
  align-items: stretch;
}
#contacts .contacts .contact-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}
#contacts .contacts .contact-card .card:last-child{
  margin-top: auto;
}

/* Contacts: evenly distribute VK / Telegram links (inside the "Мы в социальных сетях" mini-card) */
.lead-social-links{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
.lead-social-links > a{
  flex: 1 1 180px;
  justify-content: center;
  transition: opacity .18s ease;
}
.lead-social-links img{
  display: block;
  border-radius: 999px; /* clip the baked-in checkerboard corners in the PNGs */
  transition: transform .18s ease;
}
.lead-social-links > a:hover img{
  transform: scale(1.08);
}

/* Lead Form Styles */
.lead-form {
  max-width: 100%;
}

.lead-form__row {
  margin-bottom: 14px;
}

.lead-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.lead-form__input,
.lead-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: var(--p);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form__input:focus,
.lead-form__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.lead-form__btn {
  width: 100%;
  margin-top: 8px;
}

.lead-form__btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-form__status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.lead-form__status:not(:empty) {
  opacity: 1;
}

.lead-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin: 10px 0 14px;
  cursor: pointer;
}

.lead-form__consent input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Responsive adjustments for form */
@media (max-width: 767px) {
  .lead-form__row {
    margin-bottom: 12px;
  }
  
  .lead-form__input,
  .lead-form__textarea {
    padding: 10px;
    font-size: 15px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 146, 69, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--brand-2);
  box-shadow: 0 6px 20px rgba(0, 146, 69, 0.4);
  transform: translateY(-3px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top svg,
.scroll-to-top img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top svg,
  .scroll-to-top img {
    width: 20px;
    height: 20px;
  }
}

/* Lead Modal Styles */
.lead-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal[aria-hidden="false"] {
  display: flex;
}

.lead-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.lead-modal__content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.lead-modal__close:hover {
  opacity: 1;
  background: var(--brand-soft);
}

.lead-modal__title {
  margin: 0 0 20px 0;
  font-size: var(--h2);
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 767px) {
  .lead-modal__content {
    padding: 20px;
    max-height: 95vh;
  }
  
  .lead-modal__title {
    font-size: var(--h3);
    margin-bottom: 16px;
  }
}

/* Scroll Reveal Animation */
section.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Header refresh: green menu
   ========================= */
.premium-header {
  background: linear-gradient(180deg, rgba(10, 125, 63, 0.72) 0%, rgba(7, 95, 49, 0.72) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-premium a {
  color: #c7ccd4;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.55);
  font-weight: 700;
}

.nav-premium a:after {
  background: #d4d7dd;
}

.phone-link {
  color: #e6ebf1;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-right: 0;
}

.callback-btn {
  border: 1px solid rgba(214, 219, 226, 0.85);
  border-radius: 10px;
  background: linear-gradient(180deg, #0e8b45 0%, #0a6f38 100%);
  color: #d7dbe2;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.2);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.callback-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.callback-btn:active {
  transform: translateY(0);
}

.mobile-nav {
  background: linear-gradient(180deg, rgba(8, 99, 50, 0.98) 0%, rgba(6, 83, 42, 0.98) 100%);
}

.mobile-nav a {
  color: #d9dde4;
}

.mobile-actions .callback-btn {
  width: 100%;
}

/* Callback modal */
.callback-modal .lead-modal__content {
  max-width: 500px;
}

@media (max-width: 1100px) {
  .header-actions {
    gap: 8px;
  }
  .callback-btn {
    font-size: 12px;
    padding: 9px 11px;
  }
}

@media (max-width: 980px) {
  .header-actions .callback-btn {
    display: none;
  }
}

/* Stagger animation for cards */
.reveal.is-visible .card,
.reveal.is-visible .service,
.reveal.is-visible .advantage-card,
.reveal.is-visible .tariff-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.reveal.is-visible .card:nth-child(1),
.reveal.is-visible .service:nth-child(1),
.reveal.is-visible .advantage-card:nth-child(1),
.reveal.is-visible .tariff-card:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal.is-visible .card:nth-child(2),
.reveal.is-visible .service:nth-child(2),
.reveal.is-visible .advantage-card:nth-child(2),
.reveal.is-visible .tariff-card:nth-child(2) {
  animation-delay: 0.2s;
}

.reveal.is-visible .card:nth-child(3),
.reveal.is-visible .service:nth-child(3),
.reveal.is-visible .advantage-card:nth-child(3),
.reveal.is-visible .tariff-card:nth-child(3) {
  animation-delay: 0.3s;
}

.reveal.is-visible .card:nth-child(4),
.reveal.is-visible .service:nth-child(4),
.reveal.is-visible .advantage-card:nth-child(4),
.reveal.is-visible .tariff-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
