:root {
  --color-primary: #081827;
  --color-primary-soft: #12385f;
  --color-accent: #0a8f9e;
  --color-accent-dark: #0a8f9e;
  --color-bg: #eefcff;
  --color-surface: #ffffff;
  --color-text: #182638;
  --color-muted: #5d6d7e;
  --color-border: #dce8ef;
  --shadow: 0 18px 45px rgba(8, 33, 63, 0.11);
  --shadow-strong: 0 26px 70px rgba(8, 33, 63, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section,
.page-hero,
.site-footer {
  position: relative;
}

.section--light {
  background: var(--color-surface);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-text {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(8, 33, 63, 0.05);
  animation: slideDown 650ms ease both;
}

.nav {
  width: min(1720px, calc(100% - 64px));
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  width: 240px;
  height: 86px;
  border-radius: 6px;
  text-decoration: none;
  background: #ffffff;
}

.logo__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav__links a {
  position: relative;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #ffffff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  align-items: center;
  padding: 54px 0 62px;
  background:
    radial-gradient(circle at 88% 16%, rgba(10, 143, 158, 0.12), transparent 34%),
    linear-gradient(135deg, #eefcff 0%, #ffffff 54%, #f7fdff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
  width: min(1360px, calc(100% - 48px));
  max-width: none;
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.75rem, 4.6vw, 4.8rem);
  line-height: 1.06;
  color: var(--color-primary);
  margin: 0 0 20px;
}

.hero p {
  max-width: 540px;
  font-size: 1.18rem;
  line-height: 1.65;
  color: #405266;
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__image {
  position: relative;
}

.hero__image::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(10, 143, 158, 0.2), rgba(8, 24, 39, 0.08));
}

.hero__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(460px, 42vw, 590px);
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  display: block;
  box-shadow: 0 34px 90px rgba(8, 24, 39, 0.22);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(8, 33, 63, 0.14);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(8, 33, 63, 0.22);
}

.button--primary {
  color: #ffffff;
  background: #0878c8;
}

.button--primary:hover {
  background: #08213f;
}

.button--secondary {
  color: #0878c8;
  border-color: #0878c8;
  background: #ffffff;
}

.button--secondary:hover {
  color: #ffffff;
  border-color: #08213f;
  background: #08213f;
}

.page-hero {
  padding: 82px 0;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(17, 183, 199, 0.28), transparent 28%),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  isolation: isolate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -230px auto;
  z-index: -1;
  width: 470px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(17, 183, 199, 0.18);
  animation: slowFloat 9s ease-in-out infinite;
}

.page-hero__content {
  max-width: 760px;
  animation: fadeUp 760ms ease both;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 18px 0 0;
  color: #d8e8f2;
  font-size: 1.12rem;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.lead + .lead {
  margin-top: 18px;
}

.why {
  background: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.why-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e4eef5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(8, 24, 39, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.why-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--color-accent);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 143, 158, 0.34);
  box-shadow: 0 28px 70px rgba(8, 24, 39, 0.14);
}

.why-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.22rem;
}

.why-card p {
  margin: 0;
  color: var(--color-muted);
}

.intro {
  background: #eefcff;
}

.intro__content {
  max-width: 560px;
}

.intro__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
  box-shadow: 0 30px 80px rgba(8, 24, 39, 0.16);
}

.stats-section {
  background: #ffffff;
  padding-bottom: 120px;
}

.stats-section .section-title {
  color: var(--color-primary);
}

.stats-section .section-kicker {
  color: var(--color-accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card,
.card,
.service-card,
.contact-panel,
.contact-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card:hover,
.card:hover,
.service-card:hover,
.contact-panel:hover,
.contact-form:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 183, 199, 0.35);
  box-shadow: var(--shadow-strong);
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e4eef5;
  padding: 34px 28px;
  text-align: center;
  animation: fadeUp 700ms ease both;
  border-radius: 20px;
}

.stat-card:nth-child(2) {
  animation-delay: 120ms;
}

.stat-card:nth-child(3) {
  animation-delay: 240ms;
}

.stat-card strong {
  display: block;
  color: var(--color-accent-dark);
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--color-primary);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  animation: fadeUp 700ms ease both;
}

.card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card:hover::before,
.service-card:hover::before {
  opacity: 1;
}

.card:nth-child(2),
.service-card:nth-child(2) {
  animation-delay: 80ms;
}

.card:nth-child(3),
.service-card:nth-child(3) {
  animation-delay: 160ms;
}

.card:nth-child(4),
.service-card:nth-child(4) {
  animation-delay: 240ms;
}

.card:nth-child(5),
.service-card:nth-child(5) {
  animation-delay: 320ms;
}

.card:nth-child(6) {
  animation-delay: 400ms;
}

.card:nth-child(7) {
  animation-delay: 480ms;
}

.card:nth-child(8) {
  animation-delay: 560ms;
}

.card:nth-child(9) {
  animation-delay: 640ms;
}

.card h2,
.card h3,
.service-card h2 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1.25;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 330px;
  padding: 38px 34px;
  animation: fadeUp 700ms ease both;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(8, 24, 39, 0.09);
}

.service-card__icon {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 30px;
  color: inherit;
  background: transparent;
  font-size: 2.15rem;
  font-weight: 900;
  box-shadow: none;
  transition: transform 220ms ease;
}

.service-card:hover .service-card__icon {
  transform: translateY(-2px) scale(1.06);
}

.service-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.65;
}

.service-card li + li {
  margin-top: 6px;
}

.service-card h2 {
  font-size: 1.42rem;
}

.service-card p {
  font-size: 1.03rem;
  line-height: 1.65;
}

.service-areas {
  background: #eefcff;
}

.service-areas .section-title {
  color: var(--color-primary);
}

.service-areas .section-kicker {
  color: var(--color-accent);
}

.service-areas .section-text {
  color: var(--color-muted);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.contact-panel,
.contact-form {
  padding: 30px;
  animation: fadeUp 760ms ease both;
}

.contact-form {
  animation-delay: 120ms;
}

.form-status {
  display: grid;
  gap: 4px;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: var(--radius);
  line-height: 1.45;
}

.form-status[hidden] {
  display: none;
}

.form-status strong {
  color: var(--color-primary);
  font-size: 1rem;
}

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

.form-status--success {
  border-color: #9bd8b6;
  background: #effaf4;
}

.form-status--error {
  border-color: #f0b7b7;
  background: #fff3f3;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.contact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list dt {
  color: var(--color-primary);
  font-weight: 900;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--color-primary);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: #ffffff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 4px rgba(17, 183, 199, 0.14);
  transform: translateY(-1px);
}

.form-field textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-form .button {
  margin-top: 18px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  padding: 58px 0 0;
  color: #dceaf2;
  background: #06172c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
}

.footer-column h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.25;
}

.footer-text {
  max-width: 290px;
  margin: 0 0 22px;
  color: #b9cbd8;
}

.footer-meta {
  margin: 0 0 12px;
  color: #b9cbd8;
}

.footer-links {
  display: grid;
  gap: 13px;
}

.footer-links a {
  color: #dceaf2;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  color: #dceaf2;
  list-style: none;
}

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #b9cbd8;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 10px;
}

.legal-links a {
  color: #dceaf2;
  font-weight: 700;
  text-decoration: none;
}

.legal-links a:hover {
  color: #5fe0e9;
}

.legal-hero {
  padding: 70px 0;
  text-align: center;
  color: var(--color-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fa 100%);
  overflow: hidden;
}

.legal-hero::after {
  display: none;
}

.legal-hero .page-hero__content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero h1 {
  color: var(--color-primary);
}

.legal-hero p {
  color: #405266;
}

.legal-card {
  max-width: 740px;
  padding: 52px 56px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(8, 24, 39, 0.1);
}

.legal-company {
  margin: 0 0 28px;
  color: var(--color-primary);
  font-size: 1.9rem;
  line-height: 1.2;
  text-align: center;
}

.legal-card h3 {
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 3px solid #6f99d6;
  color: var(--color-primary);
  font-size: 1.28rem;
  line-height: 1.25;
}

.legal-card p {
  margin: 0 0 18px;
  color: #081827;
  line-height: 1.75;
}

.legal-card a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-card a:hover {
  color: var(--color-accent);
}

.privacy-card {
  max-width: 780px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-22px, -18px, 0);
  }
}

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

@media (max-width: 950px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(100% - 32px, 1120px);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__image img {
    height: 430px;
  }

  .why-grid,
  .intro-grid,
  .contact-grid,
  .stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 951px) and (max-width: 1280px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section {
    padding: 64px 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
  }

  .nav__links {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 52px 0;
  }

  .site-footer {
    padding-top: 42px;
  }

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

  .footer-bottom {
    margin-top: 36px;
  }

  .legal-hero {
    padding: 54px 0;
  }

  .legal-card {
    padding: 34px 24px;
  }

  .stats-section {
    padding-bottom: 76px;
  }

  .nav__links {
    width: 100%;
    gap: 4px;
  }

  .logo {
    width: 174px;
    height: 64px;
  }

  .logo__image {
    max-width: 100%;
    max-height: 100%;
  }

  .nav__links a {
    padding: 8px 9px;
    font-size: 0.92rem;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero {
    padding: 42px 0 48px;
  }

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

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

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

  .intro__image img {
    height: 360px;
  }

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

@media (max-width: 600px) {
  .hero {
    padding: 38px 0 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero__image::before {
    display: none;
  }

  .hero__image img {
    height: 360px;
    border-radius: 20px;
  }

  .why-card,
  .stat-card {
    padding: 24px;
  }

}
