﻿:root {
  --bg: #eef7ff;
  --surface: #ffffff;
  --surface-alt: #f5fbff;
  --text: #1f2c66;
  --muted: #4a5b88;
  --line: #cfe4f5;
  --brand: #3046c6;
  --brand-dark: #26379c;
  --accent: #52c7d7;
  --accent-soft: #e9fbfe;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 40px rgba(38, 66, 143, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at -10% -5%, #cff2f6 0%, transparent 52%),
    radial-gradient(1000px 500px at 102% -15%, #d8d7ff 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 62vw;
  height: 62vw;
  max-width: 760px;
  max-height: 760px;
  right: -22vw;
  top: -20vw;
  background: url("assets/wave-top.svg") no-repeat center / contain;
  opacity: 0.95;
}

body::after {
  width: 58vw;
  height: 40vw;
  max-width: 860px;
  max-height: 520px;
  left: -24vw;
  bottom: -14vw;
  background: url("assets/wave-bottom.svg") no-repeat center / contain;
  opacity: 0.92;
}

.container {
  width: min(var(--max), 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(7px);
  background: rgba(238, 247, 255, 0.9);
  border-bottom: 1px solid rgba(48, 70, 198, 0.14);
}

.header-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid #b8d8ef;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle::after {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 2px;
  margin-left: 0.55rem;
  vertical-align: middle;
  background: currentColor;
  box-shadow:
    0 -5px 0 currentColor,
    0 5px 0 currentColor;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--text);
  border-color: #b8d8ef;
  background: var(--surface);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid #b8d8ef;
  color: var(--muted);
  background: #ffffffa3;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
}

.lang.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: #9fdce7;
  color: var(--text);
  background: var(--accent-soft);
}

.hero {
  margin-top: 2.3rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero.hero-wide {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  pointer-events: none;
  background: url("assets/wave-divider.svg") no-repeat center bottom / 100% 100%;
  opacity: 0.78;
}

.hero-photo {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  max-height: 460px;
  margin-bottom: 1.2rem;
  position: relative;
}

.hero.hero-wide .hero-photo {
  border-radius: 0;
  margin-bottom: 0;
  min-height: 52vh;
  max-height: 74vh;
}

.hero.hero-wide .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 27, 70, 0.45) 0%,
    rgba(17, 27, 70, 0.1) 38%,
    rgba(17, 27, 70, 0) 62%
  );
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy {
  padding: 0.1rem 0.4rem 0.2rem;
  position: relative;
  z-index: 1;
}

.hero.hero-wide .hero-copy {
  max-width: var(--max);
  margin: -110px auto 0;
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #c6dbf3;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(7px);
  box-shadow: 0 14px 28px rgba(31, 44, 102, 0.14);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.02em;
}

.title-target {
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.28em;
  vertical-align: -0.08em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: -0.01em;
}

.section h2 {
  position: relative;
  padding-bottom: 0.35rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 130px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(82, 199, 215, 0.95),
    rgba(68, 90, 215, 0.78),
    rgba(106, 90, 208, 0.75)
  );
  opacity: 0.7;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero p {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.section {
  margin-top: 2.8rem;
}

.cards {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

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

.cards.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d9e8f6;
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  box-shadow: 0 6px 14px rgba(31, 44, 102, 0.06);
}

.card strong {
  color: var(--text);
}

.service-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.photo-placeholder {
  min-height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(48, 70, 198, 0.22);
  background:
    radial-gradient(
      500px 220px at 18% 10%,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(135deg, #9be7ee 0%, #6ecbe2 28%, #6f88eb 72%, #6a5ad0 100%);
}

.cta {
  margin: 3.2rem 0 3.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #2b3ca7 0%, #2846c8 45%, #3584d6 100%);
  color: #f5f9ff;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}

.cta p {
  color: #e4f5ff;
}

.flyer-section {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(248, 253, 255, 0.68) 0%,
    rgba(243, 251, 255, 0.64) 45%,
    rgba(244, 245, 255, 0.66) 100%
  );
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
}

.flyer-section::before,
.flyer-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.flyer-section::before {
  width: 460px;
  height: 460px;
  right: -180px;
  top: -190px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 40%,
      rgba(82, 199, 215, 0.2) 0%,
      rgba(82, 199, 215, 0.05) 36%,
      rgba(82, 199, 215, 0) 68%
    ),
    radial-gradient(
      circle at 60% 60%,
      rgba(48, 70, 198, 0.18) 0%,
      rgba(48, 70, 198, 0.03) 45%,
      rgba(48, 70, 198, 0) 70%
    );
}

.flyer-section::after {
  left: -130px;
  bottom: -170px;
  width: 420px;
  height: 300px;
  background:
    radial-gradient(
      240px 90px at 50% 50%,
      rgba(48, 70, 198, 0.12),
      rgba(48, 70, 198, 0)
    ),
    radial-gradient(
      280px 110px at 50% 75%,
      rgba(82, 199, 215, 0.18),
      rgba(82, 199, 215, 0)
    );
}

.flyer-section .flyer-content::after {
  content: "";
  display: block;
  height: 18px;
  margin-top: 1rem;
  background: url("assets/wave-divider.svg") no-repeat center / 100% 100%;
  opacity: 0.7;
}

.flyer-content {
  position: relative;
  z-index: 1;
}

.flyer-header {
  margin-bottom: 0.7rem;
}

.flyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flyer-card {
  border: 1px solid #d4e6f6;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.flyer-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.flyer-card li {
  margin-bottom: 0.4rem;
}

.service-hero {
  margin-top: 2.3rem;
  border: 1px solid #d5e6f6;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    130deg,
    rgba(239, 251, 254, 0.76) 0%,
    rgba(245, 246, 255, 0.7) 52%,
    rgba(244, 251, 255, 0.74) 100%
  );
  padding: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 48%;
  height: 70%;
  background: url("assets/wave-top.svg") no-repeat center / contain;
  opacity: 0.58;
}

.list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.45rem;
}

.panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d9e8f6;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d8e8f6;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.form-note {
  font-size: 0.93rem;
}

.form-choice {
  margin-bottom: 0.85rem;
}

.checkbox-row {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.65rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox-row input {
  margin: 0.15rem 0 0;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.2rem;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
}

.form-status.is-success {
  background: #ecfbf1;
  border-color: #a5e0ba;
  color: #20593b;
}

.form-status.is-error {
  background: #fff2f2;
  border-color: #efb0b0;
  color: #8a1f1f;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 930px) {
  .cards.services,
  .cards.steps,
  .split,
  .flyer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0 0.6rem;
  }

  .brand {
    grid-column: 1;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .brand small {
    margin-top: 0.2rem;
    font-size: 0.74rem;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: end;
  }

  .nav-wrap {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    padding-top: 0.15rem;
    overflow: visible;
  }

  .js .nav-wrap {
    display: none;
  }

  .js .site-header.menu-open .nav-wrap {
    display: flex;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .main-nav a {
    padding: 0.52rem 0.6rem;
    text-align: center;
    font-size: 0.94rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.74);
    border-color: #d6e7f7;
  }

  .lang-switch {
    justify-content: flex-start;
  }

  .site-header.menu-open .menu-toggle {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
  }

  .hero.hero-wide {
    display: block;
  }

  .hero.hero-wide .hero-photo {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
  }

  .hero.hero-wide .hero-photo img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
  }

  .hero.hero-wide .hero-copy {
    margin: 0 !important;
    padding-top: 0.85rem;
    border-radius: 0 0 14px 14px;
  }
}
