/* ========================================
   РейкаПро — стили сайта
   Разделы: базовые, шапка, блоки, темы, адаптив
   ======================================== */

:root {
  --ink: #173042;
  --paper: #eef3f5;
  --surface: #f9fbfc;
  --muted: #597080;
  --line: #dce7ed;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --dark: #10212a;
  --dark-muted: #c9d8df;
  --shadow: 0 12px 28px rgb(23 48 66 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6f9fa 0%, #eaf1f4 42%, #f5f8f9 100%);
  color: var(--ink);
  font: 16px/1.55 Inter, Arial, sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2 {
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(35px, 4vw, 54px);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

/* Шапка и навигация */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 82px;
  padding: 0 max(5vw, 28px);
  border-bottom: 1px solid #e4edf2;
  background: rgb(249 251 252 / 94%);
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span:first-child {
  color: var(--orange);
}

nav {
  display: flex;
  gap: 24px;
  margin: auto;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  transition: color 0.2s;
}

nav a:hover {
  color: var(--orange);
}

.phone {
  font-weight: 800;
}

.header-phone {
  display: grid;
  font-size: 15px;
  line-height: 1.1;
}

.header-phone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

/* Кнопки и ссылки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 23px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  box-shadow: 0 9px 20px rgb(249 115 22 / 19%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--orange-dark);
  box-shadow: 0 12px 26px rgb(249 115 22 / 27%);
  transform: translateY(-1px);
}

.button-small {
  min-height: auto;
  padding: 11px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.text-link {
  display: inline-block;
  font-weight: 800;
}

.text-link b {
  color: var(--orange);
  font-size: 21px;
}

.theme-toggle {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #d7e2e8;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 12px 28px rgb(23 48 66 / 13%);
  color: var(--ink);
  cursor: pointer;
  font: 700 14px/1 inherit;
  transform: translateY(-50%);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  transform: translateY(-50%) scale(1.04);
}

.theme-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff1e8;
  color: var(--orange-dark);
  font-size: 17px;
}

.theme-toggle:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(249 115 22 / 53%);
  outline-offset: 3px;
}

/* Первый экран */
.hero {
  position: relative;
  display: grid;
  min-height: 730px;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgb(12 34 47 / 90%) 0%, rgb(12 34 47 / 69%) 40%, rgb(12 34 47 / 8%) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 90vw);
  margin: auto;
  padding: 110px 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.052em;
}

.lead {
  max-width: 590px;
  margin: 23px 0 30px;
  color: #d4dce0;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin-top: 56px;
}

.hero-stats div {
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 24px;
  line-height: 1.15;
}

.hero-stats span {
  color: #cbd7dc;
  font-size: 13px;
  line-height: 1.35;
}

/* Общие блоки */
.section {
  padding: 105px max(5vw, 28px);
}

.section-head {
  max-width: 650px;
  margin-bottom: 36px;
}

.problem-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.problem-grid article,
.service {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.problem-grid article:hover,
.service:hover {
  box-shadow: 0 12px 26px rgb(23 48 66 / 10%);
  transform: translateY(-4px);
}

.problem-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(23 48 66 / 4%);
}

.problem-grid b,
.service > span {
  color: var(--orange);
  font-weight: 900;
}

.problem-grid h3,
.service h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.2;
}

.problem-grid p,
.service p {
  margin-bottom: 0;
  color: var(--muted);
}

.services {
  background: #edf6fa;
}

.service {
  display: flex;
  min-height: 275px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #dce8ee;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(23 48 66 / 4%);
}

.service > span {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 7px;
  background: #fff1e8;
}

.service strong {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
  font-size: 19px;
}

/* Этапы и преимущества */
.process {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  background: linear-gradient(135deg, #e8f5fa, #f7fbfd);
}

.process .muted {
  margin-top: 24px;
}

.process ol,
.trust-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid #c9dde6;
}

.process li:last-child {
  margin: 0;
  border: 0;
}

.process li > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 6px 14px rgb(23 48 66 / 8%);
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
}

.process h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.process p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust {
  padding-top: 0;
  padding-bottom: 0;
}

.trust-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  margin-top: -1px;
  padding: 64px;
  border: 1px solid #e4edf1;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5eb, #f2f9fc);
  box-shadow: var(--shadow);
}

.trust-card > div > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: #43535c;
}

.trust-card ul {
  display: grid;
  gap: 15px;
  font-weight: 800;
}

.trust-card li::before {
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--orange);
  content: '✓';
}

/* Карта и консультация */
.location {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
  background: var(--surface);
}

.location-copy {
  max-width: 430px;
}

.location-copy .text-link {
  margin-top: 26px;
}

.map-card {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9edef;
  box-shadow: var(--shadow);
}

.map-embed {
  display: block;
  width: 100%;
  height: 410px;
  border: 0;
}

.map-link-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 54px;
  border: 0;
  color: #fff;
  isolation: isolate;
}

.map-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.map-link-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(13 38 53 / 88%), rgb(13 38 53 / 52%) 52%, rgb(13 38 53 / 8%));
  content: '';
}

.map-content {
  max-width: 350px;
}

.map-content h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.map-content > p:not(.eyebrow) {
  margin: 20px 0 30px;
  color: #d1dbe0;
}

.request {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.chat-card {
  padding: 38px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fff);
  box-shadow: 0 18px 40px rgb(249 115 22 / 9%);
}

.chat-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.chat-card .button {
  width: 100%;
}

.chat-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

/* Подвал */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 54px max(5vw, 28px) 27px;
  background: var(--ink);
  color: #fff;
}

footer p {
  margin: 15px 0;
  color: #c1d0d7;
}

.footer-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-phone {
  display: block;
  font-size: 26px;
  font-weight: 850;
}

.whatsapp {
  display: inline-block;
  margin-top: 12px;
  color: #ffae7d;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 12px;
}

/* Тёмная тема */
:root[data-theme='dark'] {
  --ink: #edf5f7;
  --paper: #0c1720;
  --surface: #142630;
  --muted: #a5bbc5;
  --line: #29404d;
}

:root[data-theme='dark'] body {
  background: linear-gradient(180deg, #0c1720, #101d27 55%, #0b151d);
}

:root[data-theme='dark'] .header {
  border-color: #263c49;
  background: rgb(16 33 42 / 93%);
}

:root[data-theme='dark'] .services {
  background: #10212a;
}

:root[data-theme='dark'] .problem-grid article,
:root[data-theme='dark'] .service,
:root[data-theme='dark'] .location {
  border-color: #29424f;
  box-shadow: 0 10px 28px rgb(0 0 0 / 14%);
}

:root[data-theme='dark'] .service > span {
  background: #382416;
}

:root[data-theme='dark'] .process {
  background: linear-gradient(135deg, #10212a, #132c39);
}

:root[data-theme='dark'] .process li {
  border-color: #2f4b58;
}

:root[data-theme='dark'] .process li > span,
:root[data-theme='dark'] .trust-card li::before {
  background: #1b303c;
}

:root[data-theme='dark'] .trust-card {
  border-color: #2e4754;
  background: linear-gradient(135deg, #1b2d37, #172831);
  box-shadow: none;
}

:root[data-theme='dark'] .trust-card > div > p:last-child {
  color: #bdd0d8;
}

:root[data-theme='dark'] .chat-card {
  border-color: #5b4125;
  background: linear-gradient(135deg, #2d271e, #1b2c36);
  box-shadow: none;
}

:root[data-theme='dark'] .theme-toggle {
  border-color: #35505d;
  background: #1b303c;
  box-shadow: 0 12px 28px rgb(0 0 0 / 27%);
  color: var(--ink);
}

:root[data-theme='dark'] .theme-icon {
  background: #294452;
  color: #ffd0a7;
}

:root[data-theme='dark'] footer {
  background: #09131a;
}

/* Планшеты */
@media (max-width: 850px) {
  .header {
    gap: 16px;
  }

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

  .header .button {
    margin-left: auto;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding: 90px 0;
  }

  .hero-stats {
    max-width: 620px;
  }

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

  .process,
  .request,
  .trust-card,
  .location {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .location-copy {
    max-width: 650px;
  }

  .map-card {
    min-height: 360px;
  }

  .theme-toggle {
    top: auto;
    right: 12px;
    bottom: 14px;
    transform: none;
  }

  .theme-toggle:hover {
    transform: scale(1.04);
  }
}

/* Телефоны */
@media (max-width: 530px) {
  .header {
    height: 70px;
    padding: 0 18px;
  }

  .header .button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgb(12 34 47 / 90%), rgb(12 34 47 / 36%));
  }

  .hero-content {
    width: calc(100% - 36px);
    padding: 80px 0;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
  }

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats strong {
    font-size: 20px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .section {
    padding: 65px 18px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .problem-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .service {
    padding: 24px;
    border-radius: 12px;
  }

  .process {
    gap: 42px;
  }

  .trust-card {
    padding: 35px 25px;
    border-radius: 16px;
  }

  .location {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .map-card {
    min-height: 290px;
  }

  .map-link-card {
    padding: 28px;
  }

  .request {
    gap: 32px;
  }

  .chat-card {
    padding: 28px 24px;
  }

  .chat-card p {
    font-size: 16px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 18px 20px;
  }

  .copyright {
    grid-column: auto;
  }

  .footer-phone {
    font-size: 23px;
  }

  .theme-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
