﻿:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-soft: #ededdf;
  --text: #2c2525;
  --muted: #66685f;
  --line: #deded6;
  --accent: #4EA6DA;
  --accent-dark: #2f7faf;
  --accent-soft: #dceff8;
  --error: #a23a32;
  --success: #1f6b43;
  --shadow: 0 24px 70px rgba(20, 28, 26, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: "Comic Sans MS", "Segoe Print", "Trebuchet MS", Arial, sans-serif;
  --font-accent: "Segoe Script", "Monotype Corsiva", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 96px 102px;
  color: var(--text);
  font-family: var(--font-main);
  font-style: normal;
  line-height: 1.5;
  overflow-x: hidden;
}

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

@keyframes float-doodle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes draw-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(78, 166, 218, 0.22);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(78, 166, 218, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(14px, 2vw, 24px) clamp(18px, 4vw, 58px);
  background: rgba(244, 243, 238, 0.82);
  border-bottom: 2px solid rgba(44, 37, 37, 0.08);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  width: 40px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-style: italic;
  line-height: 1;
  text-shadow: -10px 3px 0 rgba(78, 166, 218, 0.95);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 6vw, 138px);
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1;
  min-width: 0;
}

.nav a,
.social-links a {
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav a::after,
.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
}

.nav a:hover,
.social-links a:hover {
  transform: translateY(-2px);
}

.nav a:hover::after,
.social-links a:hover::after {
  transform: scaleX(1);
}

.nav a:hover,
.contact-info a:hover,
.social-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 34px);
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1;
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 24px) clamp(36px, 5vw, 54px);
  background:
    linear-gradient(rgba(44, 37, 37, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 37, 37, 0.075) 1px, transparent 1px),
    transparent;
  background-size: 96px 102px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 900px);
  margin-top: clamp(34px, 8svh, 86px);
  text-align: center;
  animation: draw-in 0.9s var(--ease-out) both;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #3b3030;
  font-family: var(--font-accent);
  font-size: clamp(28px, 4vw, 42px);
  font-style: italic;
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-size: clamp(54px, 9.2vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 640px;
  margin: 28px auto 22px;
  color: #332b2b;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-cta {
  width: min(100%, 462px);
  min-width: 0;
  min-height: clamp(56px, 7vw, 73px);
  border-radius: 0;
  font-size: clamp(18px, 2vw, 23px);
}

.portrait-frame {
  width: min(44vw, 390px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-top: 0;
  overflow: hidden;
  background: #f8f8f6;
  border-radius: 18px;
  border: 0;
  box-shadow: none;
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
}

.portrait-frame:hover {
  filter: saturate(1.06);
  transform: translateY(-6px) rotate(-1deg);
}

.portrait-frame picture,
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  object-fit: cover;
  object-position: 50% 45%;
}

.math-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.formula {
  position: absolute;
  z-index: 1;
  color: rgba(78, 166, 218, 0.72);
  font-family: var(--font-main);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 7px 7px 0 rgba(78, 166, 218, 0.16);
  transform: rotate(-12deg);
  animation: float-doodle 5.5s ease-in-out infinite;
}

.formula-1 {
  left: 5.5%;
  top: 12%;
  font-size: clamp(24px, 3vw, 42px);
}

.formula-2 {
  left: 20%;
  top: 17%;
  font-size: clamp(28px, 4vw, 52px);
  transform: rotate(18deg);
  animation-duration: 6.5s;
}

.formula-3 {
  left: 12%;
  top: 32%;
  font-size: clamp(38px, 5vw, 78px);
  transform: rotate(-20deg);
  animation-duration: 7.2s;
}

.formula-4 {
  right: 14%;
  top: 30%;
  font-size: clamp(34px, 4.5vw, 62px);
  transform: rotate(18deg);
  animation-duration: 6.8s;
}

.formula-5 {
  left: 17%;
  top: 57%;
  font-size: clamp(24px, 3vw, 36px);
  transform: rotate(-18deg);
  animation-duration: 5.8s;
}

.formula-6 {
  right: 18%;
  bottom: 23%;
  font-size: clamp(30px, 4vw, 54px);
  transform: rotate(8deg);
  animation-duration: 7.4s;
}

.formula-7 {
  left: 13%;
  bottom: 10%;
  font-size: clamp(32px, 4.5vw, 60px);
  transform: rotate(38deg);
  animation-duration: 6.2s;
}

.formula-8 {
  right: 13.5%;
  top: 42%;
  font-size: clamp(34px, 4.5vw, 62px);
  transform: rotate(-8deg);
  animation-duration: 5.9s;
}

.formula-9 {
  right: 8.5%;
  top: 20%;
  font-size: clamp(30px, 4vw, 56px);
  transform: rotate(20deg);
  animation-duration: 7.8s;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s var(--ease-out), background 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 0 rgba(78, 166, 218, 0.12);
}

.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--accent);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric {
  display: block;
  color: var(--accent);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 96px 102px;
}

.section::before,
.section::after {
  position: absolute;
  z-index: 0;
  color: rgba(78, 166, 218, 0.35);
  font-family: var(--font-main);
  font-size: clamp(42px, 5vw, 86px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  text-shadow: 7px 7px 0 rgba(78, 166, 218, 0.1);
  animation: float-doodle 7s ease-in-out infinite;
}

.section::before {
  content: "√x";
  left: clamp(18px, 7vw, 120px);
  top: 18%;
  transform: rotate(-14deg);
}

.section::after {
  content: "π";
  right: clamp(18px, 8vw, 140px);
  bottom: 14%;
  transform: rotate(10deg);
  animation-delay: -2.5s;
}

main > .section:nth-of-type(3)::before {
  content: "∫";
}

main > .section:nth-of-type(3)::after {
  content: "D";
}

main > .section:nth-of-type(4)::before {
  content: "αβ";
}

main > .section:nth-of-type(4)::after {
  content: "x²";
}

main > .section:nth-of-type(5)::before {
  content: "lim";
}

main > .section:nth-of-type(5)::after {
  content: "∑";
}

main > .section:nth-of-type(6)::before {
  content: "sin";
}

main > .section:nth-of-type(6)::after {
  content: "√";
}

.section > * {
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

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

.muted {
  background:
    linear-gradient(rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    #eeeee6;
  background-size: 96px 102px;
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title {
  margin: 0 0 42px;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.about-section {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-top: clamp(78px, 8vw, 112px);
  padding-bottom: clamp(78px, 8vw, 112px);
}

.about-section::before {
  content: "+";
  left: 27%;
  top: 13%;
  color: rgba(44, 37, 37, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  text-shadow: none;
  transform: none;
}

.about-section::after {
  content: "+";
  right: 27%;
  bottom: 34%;
  color: rgba(44, 37, 37, 0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  text-shadow: none;
  transform: none;
}

.about-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  text-align: center;
}

.about-section h2 {
  max-width: 960px;
  margin: 0 auto 32px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.02;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 56px);
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.about-copy p {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.about-note {
  max-width: 700px;
  margin: 30px auto 0;
  color: var(--text);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 780px;
  margin: 32px auto 0;
}

.about-points span {
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  overflow-wrap: anywhere;
  transition: transform 0.22s var(--ease-out), background 0.22s ease;
}

.about-points span:hover {
  background: var(--accent-dark);
  transform: translateY(-3px) rotate(-1deg);
}

.about-bracket {
  position: absolute;
  top: 12%;
  bottom: 12%;
  z-index: 0;
  width: clamp(42px, 6vw, 92px);
  color: rgba(78, 166, 218, 0.28);
  pointer-events: none;
}

.about-bracket-left {
  left: 12%;
  background:
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 42px 44px / 48px 48px no-repeat,
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 0 88px / 48px calc(100% - 176px) no-repeat,
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 42px calc(100% - 92px) / 48px 48px no-repeat;
}

.about-bracket-right {
  right: 12%;
  background:
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 0 44px / 48px 48px no-repeat,
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 44px 88px / 48px calc(100% - 176px) no-repeat,
    linear-gradient(rgba(78, 166, 218, 0.28), rgba(78, 166, 218, 0.28)) 0 calc(100% - 92px) / 48px 48px no-repeat;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  overflow-wrap: anywhere;
}

.cards,
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 340px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 2px solid rgba(44, 37, 37, 0.12);
  box-shadow: 10px 10px 0 rgba(78, 166, 218, 0.09);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s ease;
}

.service-card::after {
  content: "Записаться →";
  align-self: end;
  width: fit-content;
  color: var(--accent-dark);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(78, 166, 218, 0.42);
  box-shadow: 16px 16px 0 rgba(78, 166, 218, 0.14);
  transform: translateY(-6px);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.service-card:focus-visible {
  outline: 4px solid var(--accent-soft);
  outline-offset: 4px;
}

.featured-service {
  background:
    linear-gradient(rgba(78, 166, 218, 0.05), rgba(78, 166, 218, 0.05)),
    var(--surface);
  border-color: rgba(78, 166, 218, 0.45);
}

.service-type {
  width: fit-content;
  padding: 9px 12px;
  background: var(--accent);
  color: #fff;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 900;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.02;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.28;
}

.service-card strong {
  align-self: end;
  margin-top: auto;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.trial-note {
  max-width: 980px;
  margin: clamp(34px, 5vw, 54px) auto 0;
  padding: clamp(22px, 4vw, 36px);
  background: #dceff8;
  color: var(--text);
  border: 2px solid rgba(78, 166, 218, 0.22);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 14px 14px 0 rgba(78, 166, 218, 0.16);
}

.review-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 860px) auto;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
}

.review-track {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(360px, 36vw, 450px);
  overflow: hidden;
}

.card,
.review,
.service-card,
.lead-form,
.contact-info {
  background: var(--surface);
  border: 2px solid rgba(44, 37, 37, 0.12);
  border-radius: 0;
  box-shadow: 10px 10px 0 rgba(78, 166, 218, 0.09);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s ease;
}

.review-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 62px);
  background: var(--surface);
  border: 2px solid rgba(44, 37, 37, 0.12);
  box-shadow: 14px 14px 0 rgba(78, 166, 218, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px) scale(0.985);
  transition: opacity 0.52s var(--ease-out), transform 0.52s var(--ease-out);
}

.review-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.review-slide.slide-out-left {
  transform: translateX(-60px) scale(0.985);
}

.review-slide > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.review-slide.is-active > * {
  opacity: 1;
  transform: translateY(0);
}

.review-slide.is-active > *:nth-child(1) {
  transition-delay: 0.08s;
}

.review-slide.is-active > *:nth-child(2) {
  transition-delay: 0.16s;
}

.review-slide.is-active > *:nth-child(3) {
  transition-delay: 0.24s;
}

.review-slide.is-active > *:nth-child(4) {
  transition-delay: 0.32s;
}

.review-count {
  color: var(--accent);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1;
}

.review-slide h3 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
}

.review-meta {
  width: fit-content;
  padding: 9px 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.review-slide p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.13;
}

.slider-controls {
  display: contents;
}

.slider-button {
  position: static;
  grid-row: 1;
  display: grid;
  width: clamp(48px, 6vw, 72px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(44, 37, 37, 0.14);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 7px 7px 0 rgba(78, 166, 218, 0.1);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), background 0.24s ease;
}

.slider-prev {
  grid-column: 1;
  justify-self: end;
}

.slider-next {
  grid-column: 3;
  justify-self: start;
}

.slider-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slider-button:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 11px 11px 0 rgba(78, 166, 218, 0.14);
  transform: translateY(-3px);
}

.slider-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-dots button {
  width: 42px;
  height: 8px;
  border: 0;
  background: rgba(44, 37, 37, 0.2);
  cursor: pointer;
  transition: width 0.24s var(--ease-out), background 0.24s ease;
}

.slider-dots button.is-active {
  width: 70px;
  background: var(--accent);
}

.card,
.review {
  min-height: 0;
  padding: clamp(20px, 2.5vw, 28px);
}

.card h3,
.step h3 {
  position: relative;
  padding-top: 8px;
}

.card h3::before {
  content: "";
  display: block;
  width: 46px;
  height: 5px;
  margin-bottom: 18px;
  background: var(--accent);
  box-shadow: 7px 7px 0 rgba(78, 166, 218, 0.16);
}

.card:hover,
.review:hover,
.contact-info:hover {
  border-color: rgba(78, 166, 218, 0.42);
  box-shadow: 16px 16px 0 rgba(78, 166, 218, 0.14);
  transform: translateY(-6px);
}

.card p,
.review p,
.contact-info p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.step {
  min-height: 0;
  padding: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(44, 37, 37, 0.12);
  transition: transform 0.28s var(--ease-out), background 0.28s ease, border-color 0.28s ease;
}

.step:hover {
  background: #fff;
  border-color: rgba(78, 166, 218, 0.38);
  transform: translateY(-6px);
}

.step span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 7px 7px 0 rgba(78, 166, 218, 0.12);
}

.step p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  overflow-wrap: anywhere;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.review p {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.22;
}

.review span {
  color: var(--accent);
  font-weight: 700;
  border-top: 2px solid rgba(44, 37, 37, 0.12);
  padding-top: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 280px), 340px);
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  padding: clamp(18px, 2vw, 24px);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lead-form label:last-of-type {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(44, 37, 37, 0.16);
  border-radius: 0;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  min-width: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  animation: soft-pulse 0.9s ease;
}

.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.contact-info {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  min-width: 0;
}

.contact-info a {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.9fr) minmax(220px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(44px, 6vw, 74px) clamp(20px, 5vw, 72px);
  color: var(--text);
  background:
    linear-gradient(rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 37, 37, 0.055) 1px, transparent 1px),
    #eeeee6;
  background-size: 96px 102px;
  border-top: 2px solid rgba(44, 37, 37, 0.12);
  overflow: hidden;
}

.footer::after {
  content: "∫";
  position: absolute;
  right: clamp(22px, 7vw, 120px);
  bottom: clamp(20px, 4vw, 52px);
  color: rgba(78, 166, 218, 0.18);
  font-family: var(--font-main);
  font-size: clamp(76px, 12vw, 160px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-14deg);
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 520px;
}

.footer-logo {
  margin-top: 4px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.footer-brand p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.3;
}

.footer-nav,
.footer-contacts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts span {
  width: fit-content;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  transition: color 0.22s ease, transform 0.22s var(--ease-out);
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contacts span {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 16px;
  }

  .social-links {
    gap: 14px;
    font-size: 16px;
  }

  .two-column,
  .cards,
  .steps,
  .reviews,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-content {
    margin-top: 30px;
  }

  .hero-kicker {
    font-size: clamp(26px, 5vw, 34px);
  }

  h1 {
    font-size: clamp(46px, 13vw, 86px);
  }

  .portrait-frame {
    width: min(78vw, 380px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero-text {
    font-size: clamp(17px, 4vw, 22px);
  }

  .hero-cta {
    min-width: min(100%, 420px);
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .about-bracket {
    display: none;
  }

  .about-copy {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .review-slider {
    grid-template-columns: 1fr 1fr;
  }

  .review-track {
    grid-column: 1 / -1;
    min-height: 430px;
    order: 1;
  }

  .review-slide {
    padding-left: clamp(28px, 5vw, 62px);
    padding-right: clamp(28px, 5vw, 62px);
  }

  .slider-controls {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 14px;
    order: 2;
  }

  .slider-prev,
  .slider-next {
    grid-column: auto;
    justify-self: auto;
    order: 0;
  }

  .slider-dots {
    order: 3;
  }

  .section::before,
  .section::after {
    opacity: 0.5;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(40px, 15vw, 58px);
  }

  h2 {
    font-size: clamp(26px, 9vw, 30px);
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .logo {
    display: none;
  }

  .nav,
  .social-links {
    justify-content: center;
  }

  .nav {
    order: 2;
    gap: 14px;
  }

  .social-links {
    order: 1;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-kicker {
    font-size: clamp(22px, 8vw, 28px);
  }

  .portrait-frame {
    min-width: 0;
  }

  .formula {
    opacity: 0.45;
  }

  .formula-1,
  .formula-4 {
    display: none;
  }

  .about-section h2 {
    font-size: clamp(23px, 8vw, 28px);
  }

  .about-copy p {
    font-size: clamp(16px, 5vw, 18px);
  }

  .about-points span {
    width: 100%;
    text-align: center;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .review-track {
    min-height: 470px;
  }

  .review-slide {
    padding: 24px;
  }

  .review-meta {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
