/* РемПро Подбор — статический лендинг для хостинга */
:root {
  --bg: #fff8f0;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #68615c;
  --line: #eee2d7;
  --brand: #ff6b00;
  --brand-dark: #de5600;
  --green: #17a76b;
  --dark: #25211f;
  --shadow: 0 24px 70px rgba(54, 34, 18, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 226, 215, .85);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #3b332e;
  font-weight: 600;
  font-size: 15px;
}

.nav a {
  opacity: .86;
  transition: opacity .2s ease, color .2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--brand);
}

.header-phone {
  font-weight: 800;
  color: #2a211d;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(41, 31, 25, .08);
  padding: 10px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: #1d1a18;
  margin: 5px 0;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -240px -220px auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255,107,0,.25), rgba(255,107,0,0) 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -260px -220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(23,167,107,.18), rgba(23,167,107,0) 64%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: .01em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 680px;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}

.lead-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(238,226,215,.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 720px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.search-row input,
.form-grid input {
  width: 100%;
  border: 1px solid #ead8c8;
  background: #fff;
  border-radius: 18px;
  padding: 17px 18px;
  outline: none;
  color: var(--ink);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.search-row input:focus,
.form-grid input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

.search-row button,
.cta-button {
  border: 0;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  padding: 16px 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 107, 0, .25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.search-row button:hover,
.cta-button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: 0 16px 30px rgba(255, 107, 0, .28);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.form-grid span {
  display: block;
  margin: 0 0 7px 4px;
  color: #7a7069;
  font-size: 13px;
  font-weight: 700;
}

.form-note {
  margin: 12px 4px 0;
  color: #8b8179;
  font-size: 12px;
}

.form-note code,
.faq code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff0e3;
  color: #b94600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.trust-row div {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(238,226,215,.9);
  border-radius: 18px;
  padding: 13px 17px;
  min-width: 145px;
}

.trust-row strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.03em;
}

.trust-row span {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.pro-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #f0e2d6;
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.pro-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.pro-top img {
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.pro-top h2 {
  font-size: 28px;
  margin: 0 0 2px;
}

.pro-top p {
  color: var(--muted);
  margin: 0 0 8px;
}

.rating {
  color: #ffb000;
  font-size: 14px;
  font-weight: 900;
}

.rating span {
  color: #6b625b;
  font-weight: 700;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: #3d3733;
  font-weight: 650;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(23,167,107,.14);
  color: var(--green);
  font-weight: 900;
  font-size: 14px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #fff7ef;
  border: 1px solid #f5dfcc;
  border-radius: 22px;
  padding: 18px;
}

.price-box span {
  color: var(--muted);
  font-size: 14px;
}

.price-box strong {
  font-size: 20px;
  white-space: nowrap;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 235px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid #f0e1d5;
  box-shadow: 0 18px 42px rgba(55, 34, 18, .12);
  padding: 14px 16px;
  font-weight: 800;
  color: #372d27;
}

.card-a {
  top: 18px;
  right: 8px;
}

.card-b {
  left: 0;
  bottom: 24px;
}

.logos-section {
  padding: 20px 0 54px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.logo-strip div {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(238,226,215,.95);
  border-radius: 22px;
  color: #453b35;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section h2,
.cta h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.review-card,
.assurance-card,
.step,
.accordion details {
  background: #fff;
  border: 1px solid #f0e1d5;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(54, 34, 18, .06);
}

.service-card {
  padding: 24px;
  min-height: 245px;
}

.service-card img {
  margin-bottom: 18px;
}

.service-card h3,
.assurance-card h3,
.step h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.service-card p,
.assurance-card p,
.step p,
.review-card p,
.muted,
.accordion p,
.site-footer p {
  color: var(--muted);
}

.service-card span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-weight: 900;
}

.how {
  background: #fff;
}

.how-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
}

.step > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}

.assurance-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, .8fr);
  gap: 16px;
}

.assurance-card {
  padding: 24px;
}

.assurance-card.dark {
  background: var(--dark);
  color: #fff;
  grid-row: span 1;
}

.assurance-card.dark p {
  color: rgba(255,255,255,.72);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  padding: 26px;
}

.stars {
  color: #ffb000;
  font-weight: 900;
  margin-bottom: 12px;
}

.review-card strong {
  display: block;
  margin-top: 20px;
}

.cta {
  padding: 54px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.28), transparent 36%),
    linear-gradient(135deg, #25211f, #3a2a21 64%, #ff6b00);
  color: #fff;
  padding: 42px;
  box-shadow: var(--shadow);
}

.cta .section-kicker {
  color: #ffd5b6;
}

.cta h2 {
  max-width: 740px;
  margin-bottom: 0;
}

.cta-button {
  background: #fff;
  color: var(--brand-dark);
  flex: 0 0 auto;
}

.cta-button:hover {
  background: #fff4eb;
}

.faq-grid {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 48px;
  align-items: start;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  padding: 20px 22px;
}

.accordion summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

.accordion p {
  margin: 14px 0 0;
}

.site-footer {
  background: #211d1a;
  color: #fff;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer p {
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255,255,255,.68);
}

.site-footer h3 {
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: rgba(255,255,255,.78);
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.54);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: min(520px, calc(100% - 28px));
  background: #211d1a;
  color: #fff;
  border-radius: 18px;
  padding: 15px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  transition: transform .25s ease, opacity .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 68px;
  }

  .nav,
  .header-phone {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav.is-open {
    display: grid;
    position: fixed;
    inset: 69px 16px auto 16px;
    padding: 18px;
    gap: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .how-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 480px;
  }

  .service-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

  .lead-card {
    padding: 12px;
    border-radius: 22px;
  }

  .search-row,
  .form-grid,
  .service-grid,
  .review-grid,
  .assurance-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-actions button {
    width: 100%;
  }

  .trust-row div {
    flex: 1 1 130px;
  }

  .hero-panel {
    min-height: auto;
    padding: 18px 0 70px;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
    width: 100%;
  }

  .pro-card {
    padding: 20px;
    border-radius: 28px;
  }

  .price-box {
    display: grid;
  }

  .logo-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .cta-inner,
  .footer-bottom {
    display: grid;
  }

  .cta-inner {
    padding: 28px;
  }

  .cta-button {
    text-align: center;
  }
}

/* Исправление оформления кнопки после переноса под поле «Город» */
.form-actions {
  margin-top: 14px;
}

.form-actions button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  padding: 16px 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 107, 0, .25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-actions button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: 0 16px 30px rgba(255, 107, 0, .28);
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}
