:root {
  --ink: #102030;
  --text: #506171;
  --blue: #1769aa;
  --blue-dark: #0e4776;
  --green: #11956f;
  --green-dark: #0b6b50;
  --soft: #f2f7f8;
  --white: #ffffff;
  --line: #dbe7eb;
  --yellow: #f5c84c;
  --shadow: 0 24px 70px rgba(16, 32, 48, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 68px;
  height: 68px;
  padding: 5px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(16, 32, 48, 0.14);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--text);
  font-size: 0.78rem;
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  color: var(--ink);
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a[aria-current="page"] {
  color: var(--blue);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 31, 52, 0.9), rgba(9, 31, 52, 0.54), rgba(9, 31, 52, 0.24)),
    url("https://images.unsplash.com/photo-1628177142898-93e36e4e3a50?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
  align-items: end;
  padding: 74px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  color: var(--white);
  font-size: clamp(2.6rem, 6.8vw, 6.2rem);
}

.hero-lead {
  max-width: 780px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.btn-blue {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(23, 105, 170, 0.28);
}

.btn-green {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 40px rgba(17, 149, 111, 0.28);
}

.hero-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-card strong {
  font-size: 1.45rem;
  line-height: 1.14;
}

.hero-card p {
  margin: 0;
}

.trust-strip {
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -42px;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trust-grid div {
  display: grid;
  gap: 5px;
  padding: 26px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong {
  color: var(--blue);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.section,
.quote-section {
  padding: 88px 0;
}

.soft {
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

h3 {
  font-size: 1.28rem;
}

.text-link {
  color: var(--blue);
  font-weight: 950;
  border-bottom: 2px solid var(--blue);
}

.reassurance-grid,
.service-cards,
.reviews,
.blog-grid,
.engagement-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reassurance-grid article,
.reviews article,
.engagement-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.about-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-dark);
  border-radius: 8px;
  background: var(--white);
}

.about-grid article:nth-child(1) {
  border-left-color: var(--blue-dark);
  background: rgba(14, 71, 118, 0.05);
}

.about-grid article:nth-child(2) {
  border-left-color: var(--green-dark);
  background: rgba(11, 107, 80, 0.05);
}

.about-grid article:nth-child(3) {
  border-left-color: #b8871f;
  background: rgba(184, 135, 31, 0.06);
}

.about-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.about-grid article:nth-child(1) h3 { color: var(--blue-dark); }
.about-grid article:nth-child(2) h3 { color: var(--green-dark); }
.about-grid article:nth-child(3) h3 { color: #b8871f; }

.about-grid p {
  color: #3d5a74;
}

.reassurance-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 950;
}

.service-cards article,
.blog-grid article,
.service-detail-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-grid article:has(a:hover),
.blog-grid article:has(a:focus-visible) {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.blog-grid article a {
  display: block;
  color: inherit;
}

.service-cards img,
.blog-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-cards div,
.blog-grid div {
  padding: 22px;
}

.comparison-grid {
  border-radius: 8px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.comparison-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

figure {
  margin: 0;
  position: relative;
}

figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 900;
}

.comparison-images > span {
  color: var(--blue);
  font-size: 2.8rem;
  font-weight: 950;
}

.comparison-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 950;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(23, 105, 170, 0.35);
}

.comparison-badge svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.reviews article span {
  color: #f2b705;
  font-weight: 950;
}

.reviews article p {
  color: var(--ink);
  font-size: 1.05rem;
}

.reviews strong,
.reviews small {
  display: block;
}

.area-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.city-list li {
  padding: 16px 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 900;
}

.city-list li::before {
  content: "— ";
  color: var(--blue);
  font-weight: 950;
}

.quote-section {
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--blue-dark), var(--green-dark));
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.quote-section h2 {
  color: var(--white);
}

.phone-big {
  display: inline-flex;
  margin-top: 20px;
  color: var(--yellow);
  font-size: 1.8rem;
  font-weight: 950;
}

.smart-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 950;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}

fieldset input {
  width: auto;
  min-height: auto;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.site-footer {
  padding: 42px 0;
  background: #071827;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.legal-note {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

.legal-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-heading {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.4;
}

.legal-list li span {
  flex: none;
  min-width: 150px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero {
  padding: 86px 0;
  background: var(--soft);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.15rem;
}

.service-detail-grid {
  display: grid;
  gap: 22px;
}

.service-detail-grid article {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: stretch;
}

.service-detail-grid img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.service-detail-grid div {
  padding: 30px;
}

.service-detail-grid h2,
.blog-grid h2 {
  font-size: 1.6rem;
}

.engagement-grid h3 {
  font-size: 1.6rem;
}

.engagement-grid article:nth-child(1) h3 { color: var(--green-dark); }
.engagement-grid article:nth-child(2) h3 { color: var(--blue-dark); }
.engagement-grid article:nth-child(3) h3 { color: #6c7a89; }
.engagement-grid article:nth-child(4) h3 { color: var(--ink); }

.service-detail-grid ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-left: 18px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.blog-grid article span {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* --- Additions: blog article pages --- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 6px 0 10px;
  color: var(--text);
  font-size: 0.85rem;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.92rem;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 42px 0 14px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-cta {
  margin-top: 46px;
  padding: 30px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 12px;
}

.article-cta .btn {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-inner,
  .trust-grid,
  .area-grid,
  .quote-grid,
  .service-detail-grid article {
    grid-template-columns: 1fr;
  }

  .reassurance-grid,
  .service-cards,
  .reviews,
  .blog-grid,
  .engagement-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 660px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

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

  .trust-grid,
  .reassurance-grid,
  .service-cards,
  .reviews,
  .blog-grid,
  .engagement-grid,
  .about-grid,
  .comparison-images,
  .city-list,
  fieldset,
  .service-detail-grid ul {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .footer-grid {
    display: grid;
  }

  .legal-list {
    grid-template-columns: 1fr;
  }

  .legal-list li {
    flex-direction: column;
    gap: 2px;
  }

  .legal-list li span {
    min-width: 0;
  }

  .comparison-images > span {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blog-grid article {
    transition: none;
  }
}
