:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-alt: #ece9e4;
  --ink: #1e2330;
  --muted: #5b6475;
  --brand: #2e5bff;
  --brand-dark: #1d3ea8;
  --accent: #0f766e;
  --line: #d3d8e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.sidebar {
  width: 290px;
  padding: 28px 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ad-label {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.35;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  background: #fbfcff;
}

.menu a:hover,
.menu a:focus-visible {
  background: #eaf0ff;
  text-decoration: none;
}

.sidebar-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px;
}

.panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.hero {
  display: flex;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 380px;
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(33px, 5vw, 52px);
  line-height: 1.03;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-media {
  flex: 1 1 420px;
  min-height: 300px;
  background: #d6dee8;
}

.hero-media img,
.inline-image img,
.card-image img,
.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #224df0;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #f5f8ff;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
}

.split > article {
  flex: 1 1 280px;
}

.split h2,
.services-block h2,
.process h2,
.form-wrap h2,
.legal-wrap h1,
.contact-wrap h1,
.simple-wrap h1 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.inline-image {
  flex: 1 1 260px;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #dce5df;
}

.services-block {
  padding: 28px;
  background: var(--surface-alt);
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.service-card {
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.card-image {
  height: 160px;
  background: #d8d8dd;
}

.service-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.price {
  font-size: 22px;
  font-weight: 700;
}

.process {
  padding: 28px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.step {
  flex: 1 1 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
}

.form-wrap {
  padding: 28px;
  background: #ffffff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bfc8d8;
  background: #ffffff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brand);
  outline: 2px solid #a8c0ff;
  outline-offset: 1px;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.wide-image {
  min-height: 280px;
  background: #d9dee6;
}

.testimonials {
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.quote {
  flex: 1 1 250px;
  padding: 16px;
  border-radius: 14px;
  background: #f7f9fd;
  border: 1px solid var(--line);
}

.footer {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #0f172a;
}

.sticky-cta a {
  color: #ffffff;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  max-width: 360px;
  z-index: 30;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(27, 42, 78, 0.18);
}

.cookie-banner p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-hidden {
  display: none;
}

.legal-wrap,
.contact-wrap,
.simple-wrap {
  padding: 28px;
  line-height: 1.65;
}

.address-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.address-item {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
  padding: 14px;
}

@media (max-width: 980px) {
  .site-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 18px;
  }
}
