:root {
  --bg: #eef5fd;
  --surface: #ffffff;
  --surface-alt: #f5f9ff;
  --text: #1e2b3d;
  --muted: #4d617f;
  --brand: #2f73bd;
  --brand-2: #6fa5dc;
  --brand-dark: #20558f;
  --border: #d7e5f5;
  --ok: #198754;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f4f8fd;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
}

.container {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  margin-top: 0.8rem;
}

.header-shell {
  display: grid;
  grid-template-columns: 1fr;
  background: #b7d3ef;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 10px 24px rgba(36, 77, 124, 0.16);
  overflow: hidden;
}

.header-visual {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 140px;
  background: #c7dcf1;
  position: relative;
  grid-row: 1;
  grid-column: 1;
}

.header-visual .couple,
.header-visual .city {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-visual::after {
  content: "+380-66-978-9768";
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 95, 149, 0.2);
  color: #1f4f82;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(32, 85, 143, 0.14);
  backdrop-filter: blur(4px);
}

.top-nav {
  grid-row: 2;
  grid-column: 1;
  background: linear-gradient(90deg, #6e9fce, #5b89bb);
}

.top-nav ul {
  margin: 0;
  padding: 0.8rem 1.2rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
}

.site-title {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  z-index: 2;
  margin: 0 0 0 225px;
  padding: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  color: #0a1f3d;
  background: none;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 3px rgba(255,255,255,0.9),
    0 0 8px rgba(199,220,241,0.8),
    0 0 16px rgba(183,211,239,0.5);
}

.quick-actions {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.65rem;
  background: #edf5ff;
  border-top: 1px solid #d6e3f3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.button:hover {
  box-shadow: 0 4px 10px rgba(32, 85, 143, 0.12);
}

.button.primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: var(--brand-dark);
}

main {
  margin: 1.35rem auto 2.4rem;
}

.hero {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: 0 8px 20px rgba(40, 77, 119, 0.08);
}

.hero h1 {
  margin: 0 0 0.7rem;
  color: #2e5b8d;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.hero-note {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-style: italic;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c9daf0;
  background: #fff;
  color: #335a87;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
}

a.pill {
  text-decoration: none;
}

a.pill:hover {
  border-color: #9bbde2;
  background: #f4f9ff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: #2d5f96;
}

.stat {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.2rem;
}

.section {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.section.alt {
  background: var(--surface-alt);
}

.section h2 {
  margin: 0 0 0.6rem;
  color: #2f5f95;
}

.faq details {
  border-bottom: 1px solid #deebf8;
  padding: 0.6rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.cta-band {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 1rem;
  color: #1f3655;
  background: #e8f1fc;
  border: 1px solid #cfe0f4;
}

.cta-band p {
  margin: 0.4rem 0 0;
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c2d8ef;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  margin-top: 0.2rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c6def7;
  border-color: #7faee0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-status {
  margin: 0;
  color: var(--ok);
  font-weight: 600;
}

.form-status.error {
  color: #b42318;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #5b708f;
  margin: 0 0 0.75rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  color: #2f5f95;
  line-height: 1.25;
}

.page-lead {
  margin: 0 0 1rem;
  color: #4c607d;
}

.quote {
  border-left: 4px solid #98bee8;
  margin: 0.4rem 0;
  padding: 0.2rem 0.85rem;
  color: #415a7a;
  background: #f6faff;
}

.article-raw {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
  line-height: 1.6;
}

.site-footer {
  margin-top: 2rem;
  border-top: 4px solid #aac6e7;
  background: #f4f9ff;
}

.footer-inner {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: #576d8d;
  font-size: 0.93rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.sticky-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 30;
  padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(241, 248, 255, 0.96);
  border-top: 1px solid #cfe1f5;
  backdrop-filter: blur(8px);
  gap: 0.55rem;
}

.sticky-mobile .button {
  flex: 1;
  padding: 0.65rem 0.75rem;
}

@media (max-width: 900px) {
  .header-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .header-visual .couple {
    max-height: 180px;
    object-fit: contain;
    background: #c7dcf1;
  }

  .header-visual .city {
    min-height: 100px;
  }

  .header-visual::after {
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.82rem;
    padding: 0.3rem 0.62rem;
  }

  .grid-3,
  .grid-2,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 4.2rem;
  }

  .top-nav ul {
    gap: 0.45rem;
    padding: 0.65rem 0.8rem;
  }

  .top-nav a {
    font-size: 0.88rem;
    padding: 0.3rem 0.45rem;
  }

  .site-title {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
    margin-left: 0;
    padding: 0.3rem 0;
    align-self: end;
  }

  .sticky-mobile {
    display: flex;
  }

  .header-visual::after {
    top: 0.4rem;
    bottom: auto;
    right: 0.45rem;
    font-size: 0.78rem;
  }
}
