:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #142d40;
  background: #e8eef2;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  --ink: #142d40;
  --muted: #526575;
  --accent: #176b61;
  --line: #dce5e9;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; border: 0; }
img { display: block; width: 100%; height: auto; }
.landing {
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 calc(116px + env(safe-area-inset-bottom));
  background: #f3f6f8;
  border-top: 4px solid var(--accent);
}
.landing > section { min-width: 0; }
.hero-section { padding: 0 !important; margin: 0 24px 24px !important; }
.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: 22px !important;
  box-shadow: 0 8px 26px #142d4006;
}
.hero-copy { padding: 14px 10px 4px; text-align: left; }
.hero-copy:empty { display: none; }
.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid #8cb5b34a;
  border-radius: 7px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .015em;
}
.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 5.8vw, 2.5rem) !important;
  font-weight: 720;
  line-height: 1.17;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-description { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.hero img { height: auto; border-radius: 12px; object-fit: contain; }
.hero-section:first-child .hero {
  background: linear-gradient(145deg, #102c40, #173c4c) !important;
  border-color: #173c4c;
  box-shadow: 0 14px 32px #102c4014;
}
.hero-section:first-child .hero-copy { color: #fff; }
.hero-section:first-child .hero-badge { color: #c2e4da; background: #ffffff08; }
.hero-section:first-child .hero-description { color: #d6e3e9; }
.hero-section:nth-child(2) .hero { padding: 10px; gap: 0; border-radius: 16px !important; }
.hero-section:nth-child(2) img { border-radius: 8px; }
.copy { padding: 0 !important; margin: 38px 28px 22px !important; text-align: left; overflow-wrap: break-word; }
.copy h2 {
  margin-bottom: 16px;
  max-width: 26ch;
  color: var(--ink);
  font-size: clamp(1.5rem, 4.8vw, 2rem) !important;
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.text-body { color: var(--muted); font-size: 1rem !important; line-height: 1.8; }
.text-body p + p { margin-top: 14px; }
.text-body p:has(> br:only-child), .feature-description p:has(> br:only-child) { display: none; }
.text-body span, .feature-description span { color: inherit !important; font-size: inherit !important; background: transparent !important; }
.text-body strong { color: var(--ink); font-weight: 600; }
.features { margin: 30px 24px !important; padding: 0 !important; }
.features h2 {
  margin: 0 4px 18px;
  color: var(--ink);
  font-size: 1.375rem !important;
  text-align: left;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.feature-grid, .photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature {
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px #142d4003;
  overflow-wrap: break-word;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid #dcebe6;
  border-radius: 10px;
  background: #eff6f3;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1;
}
.feature h3 { margin-bottom: 9px; font-size: 1.0625rem; font-weight: 680; line-height: 1.35; letter-spacing: -.015em; }
.feature-description { color: var(--muted); font-size: 1rem; line-height: 1.65; opacity: 1; }
.feature-description p + p { margin-top: 10px; }
.wide-image { padding: 0 !important; margin: 24px !important; }
.wide-image img {
  height: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.photo-grid { padding: 0 !important; margin: 24px !important; gap: 10px; }
.photo-grid img { aspect-ratio: 1; height: auto; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.contact-section { padding: 0 !important; margin: 24px !important; }
.contact-actions { display: flex; align-items: stretch; gap: 10px; }
.contact-actions > [data-contact] { flex: 1; min-width: 0; width: auto !important; margin: 0; }
.contact-actions svg { flex: 0 0 auto; }
.contact, .hero-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 11px !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  animation: none !important;
  transition: background-color .18s ease;
}
[data-contact]:not(.telegram-contact) { background: #12734e !important; }
[data-contact]:not(.telegram-contact):hover { background: #0d6241 !important; }
.telegram-contact { background: #197aa5; }
.telegram-contact:hover { background: #14688e; }
[data-contact]:focus-visible { outline: 3px solid #46b6a4; outline-offset: 3px; }
.hero-copy > .contact-actions { margin-top: 24px; }
.hero-contact { width: 100% !important; }
.hero-copy > .contact-actions > :first-child { flex: 1.7; }
.hero-copy > .contact-actions > .telegram-contact { flex: 1; }
.floating-contact, .floating-contact.paired-floating {
  position: fixed;
  z-index: 10;
  left: max(0px, calc((100vw - 800px) / 2));
  right: max(0px, calc((100vw - 800px) / 2));
  bottom: 0;
  width: auto;
  padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid #d5e0e5;
  background: #fffffff5;
  box-shadow: 0 -6px 24px #142d4008;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.floating-contact .contact { min-height: 50px; box-shadow: none; }
.copy:nth-of-type(19) { padding: 20px !important; background: #e8f1ef; border: 1px solid #d4e5df; border-radius: 14px; }
.copy:nth-of-type(30), .copy:nth-of-type(31), .contact-section:nth-of-type(32) { margin-left: 24px !important; margin-right: 24px !important; background: #102c40; }
.copy:nth-of-type(30) { margin-top: 40px !important; margin-bottom: 0 !important; padding: 28px 24px 18px !important; border-radius: 20px 20px 0 0; }
.copy:nth-of-type(30) h2 { color: #fff; }
.copy:nth-of-type(30) .text-body { color: #d4e1e7; }
.copy:nth-of-type(31) { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 24px 20px !important; }
.copy:nth-of-type(31) .text-body { color: #b8d9ce; font-size: .875rem !important; }
.copy:nth-of-type(31) h2 { color: #fff; }
.contact-section:nth-of-type(32) { margin-top: 0 !important; padding: 0 24px 24px !important; border-radius: 0 0 20px 20px; }
dialog { width: min(360px, calc(100% - 36px)); max-width: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: 0 20px 70px #102c4030; }
dialog::backdrop { background: #102c4080; }
dialog h2 { font-size: 1.25rem; line-height: 1.3; }
dialog p { margin: 12px 0 20px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
dialog button { min-height: 44px; border-radius: 9px; padding: 10px 20px; background: var(--ink); color: #fff; }
@media (max-width: 600px) {
  .landing { padding-top: 18px; }
  .hero-section { margin: 0 16px 20px !important; }
  .hero { padding: 10px; gap: 18px; border-radius: 20px !important; }
  .hero-copy { padding: 16px 10px 4px; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.125rem) !important; }
  .hero-badge { margin-bottom: 16px; font-size: .8125rem; }
  .copy { margin: 32px 22px 20px !important; }
  .copy h2 { font-size: 1.625rem !important; }
  .features { margin: 28px 16px !important; }
  .features h2 { margin-bottom: 16px; font-size: 1.375rem !important; }
  .feature { padding: 18px 14px; }
  .feature-grid { gap: 10px; }
  .feature h3 { font-size: 1rem; }
  .feature-description { font-size: 1rem; }
  .features:nth-of-type(8) .feature-grid,
  .features:nth-of-type(14) .feature-grid,
  .features:nth-of-type(18) .feature-grid,
  .features:nth-of-type(22) .feature-grid,
  .features:nth-of-type(26) .feature-grid,
  .features:nth-of-type(28) .feature-grid { grid-template-columns: minmax(0, 1fr); }
  :is(.features:nth-of-type(8), .features:nth-of-type(14), .features:nth-of-type(18), .features:nth-of-type(22), .features:nth-of-type(26), .features:nth-of-type(28)) .feature {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 18px;
  }
  :is(.features:nth-of-type(8), .features:nth-of-type(14), .features:nth-of-type(18), .features:nth-of-type(22), .features:nth-of-type(26), .features:nth-of-type(28)) .feature-icon { grid-row: 1 / span 2; margin: 0; }
  :is(.features:nth-of-type(8), .features:nth-of-type(14), .features:nth-of-type(18), .features:nth-of-type(22), .features:nth-of-type(26), .features:nth-of-type(28)) .feature h3 { align-self: center; margin-bottom: 8px; font-size: 1.0625rem; }
  :is(.features:nth-of-type(8), .features:nth-of-type(14), .features:nth-of-type(18), .features:nth-of-type(22), .features:nth-of-type(26), .features:nth-of-type(28)) .feature-description { grid-column: 2; }
  .wide-image, .photo-grid, .contact-section { margin: 20px 16px !important; }
  .copy:nth-of-type(30), .copy:nth-of-type(31), .contact-section:nth-of-type(32) { margin-left: 16px !important; margin-right: 16px !important; }
  .copy:nth-of-type(30) { padding: 26px 20px 16px !important; }
  .copy:nth-of-type(31) { padding: 0 20px 18px !important; }
  .contact-section:nth-of-type(32) { padding: 0 16px 20px !important; }
  .hero-contact { font-size: .9375rem; }
}
@media (max-width: 359px) {
  .hero-copy { padding-left: 6px; padding-right: 6px; }
  .hero h1 { font-size: 1.6875rem !important; }
  .hero-copy > .contact-actions { gap: 8px; }
  .hero-copy > .contact-actions > [data-contact] { padding: 12px 8px; font-size: .875rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .copy h2 { font-size: 1.5rem !important; }
}
@media (min-width: 801px) {
  .landing { margin-top: 28px; margin-bottom: 28px; border-radius: 20px; box-shadow: 0 16px 64px #142d4010; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
