/* ===== Variables ===== */
:root {
  --blue: #1E40AF;
  --blue-light: #3B82F6;
  --blue-dark: #1E3A8A;
  --orange: #F97316;
  --orange-light: #FB923C;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(30, 64, 175, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 64, 175, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 64, 175, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.btn--secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
}

.logo__text--light {
  color: var(--white);
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--blue);
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 1002;
  transition: var(--transition);
}

.burger:hover {
  box-shadow: var(--shadow-md);
}

.burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.burger--active {
  background: var(--blue);
}

.burger--active span {
  background: var(--white);
}

.burger--active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger--active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu--open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu--open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu--open .mobile-menu__panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 28px;
}

.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(30, 64, 175, 0.06);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu__link:last-of-type {
  border-bottom: none;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  background: var(--bg);
  color: var(--blue);
}

.mobile-menu__nav .btn {
  margin-top: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, #EFF6FF 50%, var(--bg) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__shape--1 {
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  background: rgba(59, 130, 246, 0.15);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--2 {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: rgba(249, 115, 22, 0.12);
  bottom: 0;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: min(200px, 35vw);
  height: min(200px, 35vw);
  background: rgba(30, 64, 175, 0.1);
  top: 50%;
  left: 40%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: calc(100svh - var(--header-h));
}

.hero__content {
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 20px 40px;
}

.hero__content-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__title span,
.hero__subtitle {
  color: var(--text-muted);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 32px);
}

.hero__stat-num {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--blue);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__media {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 42vw, 420px);
  overflow: hidden;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

/* ===== Problems ===== */
.problems {
  background: var(--white);
}

.problems__content {
  max-width: 860px;
  margin: 0 auto;
}

.problems__intro,
.problems__lead {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.problems__lead {
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
}

.problems__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.problems__item {
  display: grid;
  grid-template-rows: 190px auto;
  gap: 18px;
  padding: 0 0 22px;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.problems__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 64, 175, 0.15);
}

.problems__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--white);
}

.problems__item p {
  padding: 0 22px;
  line-height: 1.65;
}

.problems__conclusion {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: var(--radius-sm);
}

.problems__conclusion p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Solution ===== */
.solution__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.solution__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.solution__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.25);
}

.solution__card:hover .solution__media img {
  transform: scale(1.06);
}

.solution__media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--border);
}

.solution__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution__title {
  flex: 1;
  padding: 20px 22px 24px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

/* ===== Timeline ===== */
.steps {
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--orange));
  border-radius: 3px;
}

.timeline__item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.timeline__marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.35);
  z-index: 1;
  transition: var(--transition);
}

.timeline__item:hover .timeline__marker {
  transform: scale(1.1);
}

.timeline__num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.timeline__content {
  flex: 1;
  padding: 14px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  align-self: center;
}

.timeline__item:hover .timeline__content {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 64, 175, 0.15);
}

.timeline__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ===== Portfolio ===== */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.portfolio__card {
  text-align: left;
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.portfolio__emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.portfolio__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.portfolio__area {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.portfolio__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  transition: var(--transition);
}

.portfolio__card:hover .portfolio__more {
  color: var(--blue);
}

/* ===== Pricing ===== */
.pricing {
  background: var(--white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing__card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing__card--featured {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.pricing__card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.pricing__name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing__desc {
  font-size: 0.95rem;
  margin-bottom: 16px;
  opacity: 0.85;
}

.pricing__media {
  margin: -36px -28px 20px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
}

.pricing__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1024 / 687;
  object-fit: contain;
  object-position: center;
}

.pricing__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 20px;
}

.pricing__card--featured .pricing__price {
  color: var(--orange-light);
}

.pricing__card--featured .pricing__desc {
  opacity: 0.9;
}

.pricing__features {
  margin-bottom: 28px;
}

.pricing__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--orange);
}

.pricing__card--featured .pricing__features li::before {
  color: var(--orange-light);
}

.pricing__card .btn--outline {
  width: 100%;
}

.pricing__card--featured .btn--primary {
  width: 100%;
}

/* ===== Trust ===== */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.trust__card {
  padding: 0 0 28px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust__image {
  display: block;
  width: 100%;
  height: 210px;
  margin-bottom: 24px;
  object-fit: cover;
  background: var(--bg);
}

.trust__card p {
  padding: 0 28px;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .problems__list { grid-template-columns: 1fr; }
  .problems__item { grid-template-rows: 180px auto; }
  .problems__image { height: 180px; }
  .trust__image { height: 200px; }
}

/* ===== Accordion ===== */
.faq {
  background: var(--white);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}

.accordion__item--open {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: var(--shadow-sm);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  transition: color var(--transition);
}

.accordion__trigger:hover {
  color: var(--blue);
}

.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

.accordion__icon::before {
  width: 14px;
  height: 2.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::after {
  width: 2.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__item--open .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__panel p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA / Form ===== */
.cta__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta__wrapper > * {
  min-width: 0;
}

.cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.cta__lead {
  font-size: 1.05rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.cta__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 0.95;
}

.cta__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange-light);
}

.form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

.btn--wrap {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  hyphens: auto;
}

.form__group {
  margin-bottom: 18px;
}

.form__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form__input--error {
  border-color: #EF4444;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__textarea {
  resize: vertical;
  min-height: 80px;
}

.form__disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact, section imagery and legal details */
.header-phone {
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover { color: var(--blue); }
.mobile-menu__phone { color: var(--blue); font-size: 20px; font-weight: 800; }

.section-photo {
  width: min(900px, 100%);
  margin: 0 auto 40px;
}

.section-photo img {
  display: block;
  width: 100%;
  height: clamp(260px, 40vw, 480px);
  object-fit: cover;
  border-radius: 14px;
}

.portfolio__image {
  display: block;
  width: calc(100% + 48px);
  height: 180px;
  margin: -24px -24px 20px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.form__disclaimer a,
.footer__policy { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.contacts-section {
  padding: 56px 0;
  color: #fff;
  background: #172554;
}

.contacts-section__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 48px;
  align-items: start;
}

.contacts-section__eyebrow { margin: 0 0 8px; color: #fed7aa; font-weight: 700; }
.contacts-section h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; }
.contacts-section p { max-width: 52ch; margin-bottom: 0; color: #dbeafe; }
.contacts-section__details { display: grid; gap: 9px; font-style: normal; color: #dbeafe; }
.contacts-section__details a { color: #fff; }
.contacts-section__phone { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.footer__policy { color: #cbd5e1; font-size: 14px; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}

@media (max-width: 720px) {
  .contacts-section__inner { grid-template-columns: 1fr; gap: 28px; }
  .portfolio__image { height: 160px; }
}

/* ===== Modals ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 32px 32px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  text-align: center;
}

.modal--open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal__close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal__emoji {
  font-size: 3rem;
  margin-bottom: 12px;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal__area {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal__details {
  text-align: left;
  margin-bottom: 24px;
}

.modal__details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal__details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.modal__text {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal__success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.modal__dialog--success {
  max-width: 420px;
}

/* ===== Animations on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: max(calc(100svh - var(--header-h)), 560px);
  }

  .hero__content {
    padding: calc(var(--header-h) + 48px) clamp(24px, 4vw, 56px) 56px;
  }

  .hero__content-inner {
    margin: 0;
    max-width: 520px;
  }

  .hero__media {
    min-height: 100%;
    height: 100%;
  }

  .cta__wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 56px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: calc(var(--header-h) + 64px) clamp(32px, 5vw, 80px) 64px;
  }

  .hero__content-inner {
    max-width: 560px;
  }

  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    bottom: 40px;
  }

  .timeline__item {
    width: 50%;
    padding: 24px 0;
  }

  .timeline__item:nth-child(odd) {
    align-self: flex-start;
    flex-direction: row-reverse;
    padding-right: calc(50% + 32px);
    margin-left: 0;
  }

  .timeline__item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
    padding-left: calc(50% + 32px);
  }

  .timeline__item:nth-child(odd) .timeline__marker {
    position: absolute;
    right: -28px;
  }

  .timeline__item:nth-child(even) .timeline__marker {
    position: absolute;
    left: -28px;
  }

  .timeline {
    max-width: 900px;
  }
}

@media (max-width: 1023px) {
  .solution__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .solution__card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .solution__card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .solution__card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .pricing__card--featured {
    transform: none;
  }

  .pricing__card--featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }

  .pricing__card {
    padding: 28px 20px;
  }

  .pricing__media {
    margin: -28px -20px 18px;
  }

  .solution__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution__card:nth-child(n) {
    grid-column: auto;
  }

  .solution__media {
    height: 220px;
  }

  .solution__title {
    padding: 18px 20px 22px;
  }

  .cta {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cta .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cta__wrapper {
    padding: 24px 16px;
    gap: 28px;
    border-radius: 16px;
  }

  .cta__title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .cta__lead {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .cta__content {
    overflow-wrap: break-word;
  }

  .cta__list li {
    font-size: 0.9rem;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .form {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .form__group {
    margin-bottom: 14px;
  }

  .form__label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .form__input {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form .btn--full {
    padding: 14px 12px;
    font-size: 15px;
  }

  .form__disclaimer {
    font-size: 11px;
    line-height: 1.45;
    padding: 0 2px;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 32px;
  }

  .hero__media {
    min-height: clamp(220px, 56vw, 360px);
  }

  .hero__stats {
    gap: 20px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__subtitle {
    margin-bottom: 24px;
  }

  .hero__actions {
    margin-bottom: 28px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero__stat-label {
    font-size: 11px;
  }
}

.service-area {
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-area__layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.service-area__title {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.service-area__text {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 18px;
}

.service-area__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 30px;
  border-top: 1px solid var(--border);
}

.service-area__points li {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.service-area__map {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.service-area__map img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.service-area__map figcaption {
  padding: 12px 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.service-area__map figcaption a { text-decoration: underline; text-underline-offset: 2px; }

.mobile-contact-bar { display: none; }

@media (max-width: 860px) {
  .service-area__layout { grid-template-columns: 1fr; }
  .service-area__title { max-width: 18ch; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .service-area__text { font-size: 16px; }
  .service-area__points { margin: 22px 0 26px; }
  .service-area__map { border-radius: 14px; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 1500;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, .12);
    backdrop-filter: blur(14px);
  }
  .mobile-contact-bar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 800;
  }
  .mobile-contact-bar__call { border: 2px solid var(--blue); color: var(--blue); }
  .mobile-contact-bar__request { background: var(--orange); color: #fff; }
}

@media (max-width: 480px) {
  .service-area__points { grid-template-columns: 1fr; }
  .service-area__title { font-size: 32px; }
}

@media (max-width: 767px) and (orientation: landscape) {
  .hero__layout {
    min-height: auto;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 24px;
  }

  .hero__media {
    min-height: 200px;
  }
}

@media (max-width: 380px) {
  .cta .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cta__wrapper {
    padding: 20px 12px;
  }

  .form {
    padding: 16px 12px;
  }
}
