:root {
      --accent: #ef471c;
      --accent2: #ff7a2f;
      --dark: #081f33;
      --muted: #667085;
      --bg: #f7f8fb;
      --card: #fff;
      --line: #e8edf3;
      --green: #20b15a;
      --shadow: 0 18px 55px rgba(8, 31, 51, .12);
      --r: 28px
    }
    
    * {
      box-sizing: border-box
    }
    
    html {
      scroll-behavior: smooth
    }
    
    body {
      margin: 0;
      font-family: Rubik, Arial, sans-serif;
      color: var(--dark);
      background: var(--bg);
      line-height: 1.45
    }
    
    a {
      color: inherit;
      text-decoration: none
    }
    
    img {
      max-width: 100%;
      display: block
    }
    
    .wrap {
      width: min(1180px, calc(100% - 32px));
      margin: auto
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 0;
      border-radius: 999px;
      padding: 18px 26px;
      font-weight: 700;
      cursor: pointer;
      transition: .2s;
      background: var(--accent);
      color: #fff;
      box-shadow: 0 12px 28px rgba(239, 71, 28, .28)
    }
    
    .btn:hover {
      transform: translateY(-2px);
      background: #d83e17
    }
    
    .btn.alt {
      background: #fff;
      color: var(--dark);
      box-shadow: inset 0 0 0 1px var(--line)
    }
    
    .btn.alt:hover {
      background: #f5f7fa
    }
    
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      background: #fff4ef;
      color: #b53613;
      font-weight: 700;
      font-size: 14px
    }
    
    .section {
      padding: 86px 0
    }
    
    .title {
      font-size: clamp(32px, 4vw, 56px);
      line-height: 1.05;
      margin: 0 0 18px;
      font-weight: 800;
      letter-spacing: -.04em
    }
    
    .subtitle {
      font-size: 18px;
      color: var(--muted);
      max-width: 720px;
      margin: 0 0 34px
    }
    
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, .86);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(232, 237, 243, .9)
    }
    
    .head {
      height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px
    }
    
    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      min-width: 0
    }

    .logo span {
      display: block;
      line-height: 1.12;
      white-space: nowrap
    }

    .logo small {
      display: block;
      font-weight: 600;
      line-height: 1.12;
      white-space: nowrap
    }

    .logo-img {
      flex: 0 0 auto
    }
    
    .logo-mark {
      width: 46px;
      height: 46px;
      border-radius: 15px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 23px
    }
    
    .nav {
      display: flex;
      gap: 22px;
      font-weight: 600;
      color: #344054;
      font-size: 15px
    }
    
    .contacts {
      display: flex;
      align-items: center;
      gap: 16px
    }
    
    .phone {
      font-weight: 800;
      font-size: 18px;
      white-space: nowrap
    }
    
    .menu-btn {
      display: none;
      border: 0;
      background: #fff;
      border-radius: 14px;
      width: 46px;
      height: 46px;
      box-shadow: inset 0 0 0 1px var(--line);
      font-size: 25px
    }
    
    .hero {
      position: relative;
      min-height: 760px;
      padding: 96px 0 64px;
      overflow: hidden;
      color: #fff;
      background: #081f33
    }
    
    .hero:before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(8, 31, 51, .92), rgba(8, 31, 51, .72), rgba(8, 31, 51, .2)), url('../img/bg.jpg') center/cover no-repeat
    }
    
    .hero .wrap {
      position: relative;
      display: grid;
      grid-template-columns: 1.1fr .78fr;
      gap: 46px;
      align-items: center
    }
    
    .hero h1 {
      font-size: clamp(44px, 6.5vw, 86px);
      line-height: .95;
      margin: 18px 0 20px;
      letter-spacing: -.06em
    }
    
    .hero p {
      font-size: 22px;
      max-width: 650px;
      color: rgba(255, 255, 255, .86)
    }
    
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin: 34px 0
    }
    
    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 42px
    }
    
    .stat {
      padding: 18px;
      border-radius: 22px;
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .16);
      backdrop-filter: blur(8px)
    }
    
    .stat b {
      display: block;
      font-size: 28px
    }
    
    .stat span {
      color: rgba(255, 255, 255, .72);
      font-size: 14px
    }
    
    .lead-form {
      background: #fff;
      color: var(--dark);
      border-radius: var(--r);
      padding: 30px;
      box-shadow: var(--shadow)
    }
    
    .lead-form h3 {
      margin: 0 0 8px;
      font-size: 28px
    }
    
    .lead-form p {
      font-size: 15px;
      color: var(--muted);
      margin: 0 0 22px
    }
    
    .field {
      width: 100%;
      height: 58px;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 0 18px;
      margin-bottom: 12px;
      font: inherit;
      outline: none
    }
    
    .field:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(239, 71, 28, .12)
    }
    
    .agree {
      font-size: 12px;
      color: #7a8797;
      margin-top: 12px
    }
    
    .grid4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px
    }
    
    .adv {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px;
      box-shadow: 0 8px 30px rgba(8, 31, 51, .05)
    }
    
    .ico {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: #fff0e9;
      color: var(--accent);
      display: grid;
      place-items: center;
      font-size: 24px;
      margin-bottom: 18px
    }
    
    .adv h3 {
      margin: 0 0 8px;
      font-size: 20px
    }
    
    .adv p {
      margin: 0;
      color: var(--muted)
    }
    
    .tabs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 24px
    }
    
    .tab {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 999px;
      padding: 12px 18px;
      font-weight: 700;
      cursor: pointer
    }
    
    .tab.active {
      background: var(--dark);
      color: #fff;
      border-color: var(--dark)
    }
    
    .product {
      display: none;
      grid-template-columns: .95fr 1fr;
      gap: 28px;
      background: #fff;
      border-radius: var(--r);
      padding: 24px;
      border: 1px solid var(--line);
      box-shadow: var(--shadow)
    }
    
    .product.active {
      display: grid
    }
    
    .product img {
      height: 440px;
      width: 100%;
      object-fit: cover;
      border-radius: 22px
    }
    
    .product h3 {
      font-size: 34px;
      margin: 0 0 12px
    }
    
    .price {
      font-size: 18px;
      color: var(--muted);
      margin: 24px 0
    }
    
    .price b {
      font-size: 42px;
      color: var(--accent)
    }
    
    .list {
      display: grid;
      gap: 12px;
      margin: 22px 0
    }
    
    .list div {
      display: flex;
      gap: 10px;
      color: #344054
    }
    
    .list div:before {
      content: "✓";
      color: var(--green);
      font-weight: 800
    }
    
    .cards3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px
    }
    
    .card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(8, 31, 51, .05)
    }
    
    .card img {
      height: 220px;
      width: 100%;
      object-fit: cover
    }
    
    .card-body {
      padding: 22px
    }
    
    .card h3 {
      margin: 0 0 8px
    }
    
    .card p {
      color: var(--muted);
      margin: 0
    }
    
    .portfolio {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px
    }
    
    .portfolio a {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      background: #ddd
    }
    
    .portfolio img {
      height: 230px;
      width: 100%;
      object-fit: cover;
      transition: .25s
    }
    
    .portfolio a:hover img {
      transform: scale(1.05)
    }
    
    .calc {
      display: grid;
      grid-template-columns: 1fr .8fr;
      gap: 28px;
      background: linear-gradient(135deg, #101f31, #24384f);
      border-radius: 34px;
      padding: 34px;
      color: #fff;  
    }
	
	.calc {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
}
  
    .calc .subtitle {
      color: rgba(255, 255, 255, .72)
    }
    
    .range-row {
      display: grid;
      gap: 10px;
      margin: 22px 0
    }
    
    .range-row input {
      accent-color: var(--accent)
    }
    
    .result {
      background: #fff;
      color: var(--dark);
      border-radius: 28px;
      padding: 28px
    }
    
    .result b {
      font-size: 46px;
      color: var(--accent)
    }
    
    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      counter-reset: s
    }
    
    .step {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px
    }
    
    .step:before {
      counter-increment: s;
      content: counter(s);
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-weight: 800;
      margin-bottom: 16px
    }
    
    .reviews {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px
    }
    
    .review {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px
    }
    
    .stars {
      color: #ffb400;
      letter-spacing: 2px
    }
    
    .faq {
      display: grid;
      gap: 12px
    }
    
    .faq-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 20px;
      overflow: hidden
    }
    
    .faq-q {
      width: 100%;
      border: 0;
      background: #fff;
      padding: 22px;
      text-align: left;
      font-weight: 800;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      justify-content: space-between
    }
    
    .faq-a {
      display: none;
      padding: 0 22px 22px;
      color: var(--muted)
    }
    
    .faq-item.open .faq-a {
      display: block
    }
    
    .cta {
      background: linear-gradient(135deg, var(--accent), #ff8b3d);
      border-radius: 36px;
      padding: 44px;
      color: #fff;
      display: grid;
      grid-template-columns: 1fr .8fr;
      gap: 30px;
      align-items: center
    }
    
    .cta .field {
      border: 0
    }
    
    .footer {
      padding: 40px 0;
      background: #071827;
      color: #fff
    }
    
    .foot {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      color: rgba(255, 255, 255, .75)
    }

    .footer-phone,
    .footer-email {
      white-space: nowrap
    }

    .scroll-top {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 70;
      width: 52px;
      height: 52px;
      border: 0;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-size: 26px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 14px 34px rgba(8, 31, 51, .22);
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: .2s
    }

    .scroll-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0)
    }

    .scroll-top:hover {
      background: #d83e17;
      transform: translateY(-2px)
    }
    
    .modal {
      position: fixed;
      inset: 0;
      background: rgba(7, 24, 39, .7);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      padding: 20px
    }
    
    .modal.open {
      display: flex
    }
    
    .modal-box {
      background: #fff;
      border-radius: 28px;
      padding: 30px;
      width: min(460px, 100%);
      position: relative
    }
    
    .modal-close {
      position: absolute;
      right: 18px;
      top: 18px;
      border: 0;
      background: #f2f4f7;
      border-radius: 50%;
      width: 38px;
      height: 38px;
      font-size: 22px;
      cursor: pointer
    }
    
    @media(max-width:960px) {
      .nav,
      .contacts .btn {
        display: none
      }
      .menu-btn {
        display: block
      }
      .head {
        height: 72px;
        gap: 10px
      }
      .logo {
        gap: 8px
      }
      .logo-img {
        width: 42px;
        height: auto
      }
      .logo span {
        font-size: 15px;
        line-height: 1.05
      }
      .logo small {
        font-size: 11px;
        line-height: 1.05
      }
      .nav.open {
        display: flex;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 82px;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 20px;
        box-shadow: var(--shadow)
      }
     .hero .wrap,
	.product,
	.cta {
	  grid-template-columns: 1fr;
	}

	.calc {
	  grid-template-columns: minmax(0, 1fr) 320px;
	}	
      .grid4,
      .steps {
        grid-template-columns: repeat(2, 1fr)
      }
      .cards3,
      .reviews {
        grid-template-columns: 1fr
      }
      .portfolio {
        grid-template-columns: repeat(2, 1fr)
      }
      .hero {
        min-height: auto
      }
      .stats {
        grid-template-columns: 1fr 1fr
      }
    }
    
    @media(max-width:560px) {
      .section {
        padding: 58px 0
      }
      .grid4,
      .steps,
      .stats,
      .portfolio {
        grid-template-columns: 1fr
      }
      .hero {
        padding-top: 64px
      }
      .hero p {
        font-size: 18px
      }
	  .calc {
		  grid-template-columns: 1fr;
		}
      .lead-form {
        padding: 22px
      }
      .product img {
        height: 260px
      }
      .calc,
      .cta {
        padding: 24px
      }
	  .calc {
		  grid-template-columns: 1fr;
		}
      .phone {
        font-size: 14px
      }
      .contacts {
        gap: 8px
      }
      .menu-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 auto
      }
      .foot {
        flex-direction: column;
        align-items: flex-start
      }
      .footer-contacts {
        font-size: 14px
      }
      .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        font-size: 22px
      }
    }

    @media(max-width:380px) {
      .wrap {
        width: min(1180px, calc(100% - 20px))
      }
      .logo-img {
        width: 36px
      }
      .logo span {
        font-size: 13px
      }
      .logo small {
        font-size: 10px
      }
      .phone {
        font-size: 12px
      }
      .menu-btn {
        width: 38px;
        height: 38px;
        font-size: 22px
      }
    }

/* FIX: калькулятор — цена справа от ползунков */
#calc .calc {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  align-items: center;
}

#calc .result {
  width: 320px;
  min-width: 320px;
}

/* Только на совсем узких телефонах переносим вниз */
/* @media (max-width: 700px) {
  #calc .calc {
    grid-template-columns: 1fr !important;
  }

  #calc .result {
    width: 100%;
    min-width: 0;
  }
} */

#calc .calc {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  align-items: center;
  gap: 28px;
}

@media (max-width: 700px) {
  #calc .calc {
    grid-template-columns: 1fr !important;
  }
}