:root {
  --bg: #f2f7fd;
  --surface: #e6f0fb;
  --card: #ffffff;
  --line: #d5e4f7;
  --text: #10203a;
  --muted: #5b6b85;
  --accent: #3b82f6;
  --accent-soft: #d8e7fb;
  --accent-solid: #4f93ee;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

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

/* Шапка: две строки — логотип/кнопки и меню разделов */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
}

.brand img {
  width: 142px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav {
  padding-bottom: 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 12px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Кнопки «Войти» / «Регистрация» — как на фото */
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.btn-auth--login {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-auth--login:hover {
  background: #c6dcfa;
}

.btn-auth--register {
  background: var(--accent-solid);
  color: #fff;
}

.btn-auth--register:hover {
  background: #3d84e6;
}

.btn-auth:active {
  transform: translateY(1px);
}

.header-actions .btn-auth {
  font-size: 15px;
  padding: 11px 24px;
}

/* Кнопка перехода на основной сайт — контурная */
.site-button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 26px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.site-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.site-button:active {
  transform: translateY(0);
}

.top-section {
  padding-bottom: 26px;
}

/* Строка со ссылкой */
.domain-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 20px;
  margin-top: 22px;
}

.domain-strip__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.domain-strip__domains {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.domain-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.domain-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.copy-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  position: relative;
  cursor: pointer;
  transition: border-color .18s ease;
}

.copy-button:hover {
  border-color: var(--accent);
}

.copy-button span {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 4px;
  width: 14px;
  height: 14px;
}

.copy-button span:first-child {
  top: 12px;
  left: 11px;
  background: #fff;
}

.copy-button span:last-child {
  top: 6px;
  left: 17px;
  background: #fff;
}

.copy-button.is-copied::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
}

.copy-button.is-copied span {
  opacity: 0;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 420px);
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card--visual {
  overflow: hidden;
}

.hero-card--visual picture,
.hero-card--visual img {
  width: 100%;
}

.hero-card--text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  padding: 32px 30px;
  overflow: hidden;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.03em;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--muted);
}

.hero-subtitle + .hero-note,
.hero-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.mini-links-card {
  width: 100%;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px;
}

.mini-links-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mini-links-card__title {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--muted);
}

.mini-links-card__list {
  display: grid;
  gap: 6px;
}

.mini-links-card__list a {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.copy-button--small {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.copy-button--small span:first-child {
  top: 9px;
  left: 6px;
  width: 10px;
  height: 10px;
}

.copy-button--small span:last-child {
  top: 4px;
  left: 12px;
  width: 10px;
  height: 10px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.arc {
  position: absolute;
  pointer-events: none;
  border: 1.5px dashed rgba(59, 130, 246, .4);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 220px 0;
}

/* Пустые заголовки/вступление не должны рисовать блоки */
.page-hero h2:empty,
.page-hero h3:empty,
.page-lead:empty {
  display: none;
}

/* Витрина на главной */
.showcase-section {
  padding: 8px 0 24px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 46px 48px;
  position: relative;
  overflow: hidden;
}

.showcase-side {
  text-align: center;
  z-index: 2;
}

.showcase-side h2 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
}

.showcase-side h2 span {
  color: var(--accent);
}

.showcase-phone {
  position: relative;
  z-index: 2;
}

.showcase-phone img {
  width: min(320px, 100%);
  margin: 0 auto;
}

.arc--left {
  width: 180px;
  height: 170px;
  left: 18%;
  top: 56%;
  transform: rotate(12deg);
}

.arc--right {
  width: 170px;
  height: 165px;
  right: 24%;
  top: 12%;
  transform: scaleX(-1) rotate(30deg);
}

/* Контент: белые карточки */
.content-section {
  padding: 0 0 30px;
}

.content-stack {
  display: grid;
  gap: 16px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 34px;
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

.info-card p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.info-card p:last-child {
  margin-bottom: 0;
}

.card-strong {
  font-size: 19px !important;
  line-height: 1.55 !important;
  color: var(--text) !important;
}

/* Внутренняя страница */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}

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

.crumb-sep {
  color: var(--line);
}

.page-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 40px;
  margin-top: 14px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.03em;
}

.page-hero h2 {
  margin: 14px 0 0;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
}

.page-hero h3 {
  display: inline-block;
  margin: 22px 0 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
}

.page-lead {
  margin: 20px 0 0;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.page-hero .hero-cta {
  margin-top: 24px;
}

.not-found {
  text-align: center;
  padding: 70px 0 40px;
}

.not-found h1 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.03em;
}

.not-found p {
  color: var(--muted);
  font-size: 17px;
}

.not-found .hero-cta {
  justify-content: center;
}

/* Футер */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 44px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.footer-brand p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-nav .nav-link {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 14px;
}

.footer-nav .nav-link.is-active {
  border-bottom: 0;
}

.footer-keys {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 36px 22px;
  }

  .arc--left,
  .arc--right {
    display: none;
  }
}

@media (max-width: 860px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 0 10px;
  }

  .brand img {
    width: 126px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .header-actions .btn-auth {
    font-size: 14px;
    padding: 11px 18px;
  }

  .site-button {
    font-size: 14px;
    padding: 11px 18px;
  }

  .site-nav {
    gap: 18px;
    padding-bottom: 10px;
  }

  .domain-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 16px;
  }

  .domain-strip__label {
    grid-column: 1 / -1;
  }

  .domain-strip__domains {
    justify-content: flex-start;
  }

  .hero-card--text {
    padding: 26px 20px;
    gap: 16px;
  }

  .info-card {
    padding: 26px 20px;
  }

  .info-card p {
    font-size: 16px;
  }

  .page-hero {
    padding: 28px 20px;
  }

  .page-lead {
    font-size: 16px;
  }

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

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* SEO-ключи */
.seo-keys {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.75;
  color: var(--muted);
}
.seo-block h2 {
  margin-bottom: 14px;
}
