:root {
  color-scheme: light;
  --ink: #142238;
  --body-ink: #536174;
  --accent: #245fe4;
  --accent-hover: #174cc4;
  --line: #e5eaf1;
  --soft: #f7f9fc;
  --heading-font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

body {
  --content-width: 780px;
  --side-width: clamp(180px, 17vw, 250px);
  --side-gap: 18px;
  --edge-space: 18px;
  --main-width: min(var(--content-width), calc(100% - var(--side-width) * 2 - var(--side-gap) * 2 - var(--edge-space) * 2));
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  min-height: 96px;
  margin: 0 auto;
  padding: 20px 28px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .45) transparent;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  color: inherit;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease;
}

.header-nav a:hover { background: rgba(255, 255, 255, .13); }
.header-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); }
.header-nav--products { gap: 2px; }
.header-nav--products a { padding-right: 12px; padding-left: 12px; }
.header-nav--utility { margin-left: auto; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.4); gap: 4px; }
.header-nav .nav-separated { border-left-color: rgba(255,255,255,.4); border-radius: 0 8px 8px 0; }
.header-nav .nav-primary { border-color: rgba(255, 255, 255, .45); }
.site-header a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.language-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-left: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
}

.language-switch button {
  min-width: 38px;
  min-height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.language-switch button:hover { background: rgba(255, 255, 255, .15); box-shadow: none; }
.language-switch button[aria-pressed="true"] { background: #fff; color: var(--accent-hover); }
.language-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

main > section { scroll-margin-top: 28px; }
main > section:focus { outline: none; }

main {
  width: var(--main-width);
  margin: 0 auto;
  padding: 64px 0 96px;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  color: var(--ink);
  font-weight: 650;
  text-wrap: balance;
}

.checker {
  position: relative;
  padding: 40px 36px 36px;
  overflow: hidden;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(24, 50, 90, .025), 0 18px 50px -22px rgba(24, 50, 90, .23);
}

.checker::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  content: "";
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.checker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input, button {
  min-width: 0;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 15px/1.4 "Segoe UI", Arial, sans-serif;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-color: #d5deeb;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder { color: #6c7b8e; }

input:hover { border-color: #a4b8d2; }
input:focus { background: #fff; border-color: var(--accent); }

button {
  padding: 14px 22px;
  background: var(--accent);
  box-shadow: 0 3px 7px rgba(36, 95, 228, .16);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms ease, box-shadow 150ms ease;
}

button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(36, 95, 228, .25);
}

button:active { box-shadow: none; }

input:focus-visible, button:focus-visible {
  outline: 3px solid #afcafb;
  outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: #ba3c3c; }

#domain-result:empty { display: none; }

#domain-result {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--body-ink);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#domain-result.is-error {
  border-color: #f1d4d4;
  background: #fff7f7;
  color: #992f2f;
}

.buying { margin-top: 64px; }

h2 {
  margin: 0 0 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.question {
  position: relative;
  padding: 30px 0;
}

.question:last-child {
  padding-bottom: 0;
}

.question h3 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 46px;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.question h3 .question-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #dce7fb;
  border-radius: 8px;
  background: #f0f5ff;
  color: #275cc8;
  font: 600 12px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.question p {
  margin: 0 0 0 46px;
  color: var(--body-ink);
  font-size: 15.5px;
  line-height: 1.85;
}

.question table {
  width: calc(100% - 46px);
  margin: 24px 0 0 46px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  color: var(--body-ink);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.question caption {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.question th, .question td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.question th {
  background: #f5f7fa;
  color: #34465e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

.question td:first-child {
  width: 34%;
  color: #34465e;
  font-weight: 500;
}

.question tbody tr:last-child td { border-bottom: 0; }

.contact {
  margin-top: 72px;
  padding: 36px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: var(--soft);
}

.contact h2 { padding-bottom: 0; border: 0; text-wrap: pretty; }
.contact-intro { margin: 14px 0 28px; color: var(--body-ink); font-size: 15px; line-height: 1.7; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 9px; margin-bottom: 22px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field label .optional { color: var(--body-ink); font-weight: 400; }
.contact input { background: #fff; }

.contact textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid #d5deeb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.6 "Segoe UI", Arial, sans-serif;
}

.contact textarea:hover { border-color: #a4b8d2; }
.contact textarea:focus { border-color: var(--accent); }
.contact textarea:focus-visible { outline: 3px solid #afcafb; outline-offset: 3px; }
.contact-actions { display: flex; align-items: center; gap: 18px; }
#contact-status { margin: 0; color: var(--body-ink); font-size: 13px; line-height: 1.6; }
.contact button:disabled { background: #dce3ed; box-shadow: none; color: #536174; cursor: not-allowed; }

.side-box {
  position: fixed;
  top: 190px;
  width: var(--side-width);
  height: min(430px, calc(100vh - 214px));
  border: 1px solid #e0e6ee;
  border-radius: 12px;
  background: #fcfdff;
  box-shadow: 0 6px 24px -14px rgba(25, 48, 80, .15);
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.side-box--left {
  left: calc((100% - var(--main-width)) / 4 - var(--side-width) / 2);
}

.side-box--right {
  right: calc((100% - var(--main-width)) / 4 - var(--side-width) / 2);
}

.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.service-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 16px; border: 1px solid #dce7fb; border-radius: 9px; background: #fff; color: var(--accent); }
.service-icon svg { width: 23px; height: 23px; }
.service-card h2 { margin: 0; padding: 0; border: 0; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; text-wrap: pretty; }
.service-card p { margin: 10px 0 20px; color: var(--body-ink); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--accent-hover); font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-card .text-link { margin-top: auto; }
main a:focus-visible { outline: 3px solid #afcafb; outline-offset: 4px; border-radius: 4px; }
.offers-grid { display: contents; }
.offer-tag { display: inline-block; color: var(--accent-hover); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.domain-offer { background: linear-gradient(155deg, #eff5ff, #fff 78%); border-color: #cfdef7; }
.offer-domain-mark { display: block; width: fit-content; margin: 16px 0 12px; padding: 8px 12px; border: 1px solid #d5e3fa; border-radius: 8px; background: #fff; color: var(--accent); font-size: 21px; font-weight: 650; letter-spacing: -.07em; }
.side-box h2 { margin: 0; padding: 0; border: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; text-wrap: pretty; }
.offer-price { display: flex; flex-direction: column; gap: 3px; margin: 18px 0; color: var(--body-ink); font-size: 13px; }
.offer-price strong { color: var(--accent-hover); font-size: clamp(30px, 3vw, 43px); line-height: 1.1; font-weight: 750; letter-spacing: -.05em; white-space: nowrap; }
.offer-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; width: 100%; padding: 10px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.offer-button:hover { background: var(--accent-hover); }
.offer-fineprint { margin: 14px 0 0; color: #657388; font-size: 11px; line-height: 1.5; }
.side-service + .side-service { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.side-service h2 { margin-top: 6px; font-size: 18px; }
.side-service p { margin: 6px 0; color: var(--body-ink); font-size: 12px; line-height: 1.45; }
.side-service .text-link { min-height: 36px; font-size: 13px; }
.side-service .side-offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin: 4px 0 0; }
.side-offer-price strong { color: var(--accent-hover); font-size: 23px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.side-offer-price small { width: 100%; color: #657388; font-size: 10px; line-height: 1.3; }
.side-box--right { padding: 12px 16px; }
.product-page main { width: min(780px, calc(100% - 40px)); }
.back-link { margin-bottom: 24px; }
.product-hero { padding: 36px; border: 1px solid #dce5f1; border-top: 4px solid var(--accent); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px -28px rgba(24,50,90,.2); }
.product-hero h1 { margin-top: 18px; margin-bottom: 20px; }
.product-hero .product-lead { margin: 0; color: var(--body-ink); font-size: 17px; line-height: 1.8; }
.product-details { margin-top: 36px; }
.product-details h2 { font-size: 24px; }
.product-details ul { padding-left: 22px; color: var(--body-ink); line-height: 1.85; }
.product-details li { margin: 10px 0; }
.product-offers { margin-bottom: 40px; }
.offers-heading { margin-bottom: 22px; }
.offers-heading h2 { margin: 10px 0 8px; padding: 0; border: 0; font-size: 30px; }
.offers-heading p { margin: 0; color: var(--body-ink); font-size: 14px; line-height: 1.7; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { display: flex; flex-direction: column; min-width: 0; padding: 24px 20px 20px; border: 1px solid #dce5f1; border-radius: 14px; background: linear-gradient(165deg, #f1f6ff, #fff 65%); }
.plan-index { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 20px; border: 1px solid #d5e3fa; border-radius: 8px; background: #fff; color: var(--accent-hover); font-size: 11px; font-weight: 700; }
.plan-card h3 { margin: 0 0 18px; font-size: 21px; line-height: 1.3; letter-spacing: -.035em; text-wrap: pretty; }
.plan-card ul { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; color: var(--body-ink); list-style: none; font-size: 13px; line-height: 1.5; }
.plan-card li { position: relative; padding-left: 18px; }
.plan-card li::before { position: absolute; left: 0; color: var(--accent); content: "✓"; }
.plan-price { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-price strong { font-size: 32px; line-height: 1; color: var(--accent-hover); }
.plan-price span { color: var(--body-ink); font-size: 12px; line-height: 1.5; }
.affiliate-note { margin: 14px 0 -4px; color: #657388; font-size: 11px; line-height: 1.45; }
.plan-card button:disabled { width: 100%; min-height: 44px; margin-top: 18px; padding: 10px 8px; border: 1px solid #d8e1ee; background: #edf2f9; box-shadow: none; color: #596b83; font-size: 12px; white-space: normal; cursor: not-allowed; }
.product-crosslink { margin-top: 26px; }

@media (max-width: 1100px) {
  body {
    --side-width: clamp(96px, 14vw, 150px);
    --side-gap: 14px;
    --edge-space: 14px;
  }
  main { padding-top: 48px; }
  .checker { padding: 32px 26px 26px; }
  .checker-row { grid-template-columns: minmax(0, 1fr); }
  .side-box { height: min(400px, calc(100vh - 214px)); }
  .side-box { padding: 16px; }
  .side-box h2 { font-size: 19px; }
  .side-service h2 { font-size: 18px; }
  .header-inner { gap: 12px; padding-right: 20px; padding-left: 20px; }
  .brand { font-size: 22px; }
  .header-nav a { padding-right: 10px; padding-left: 10px; font-size: 13px; }
  .header-nav--utility { padding-left: 12px; }
}

@media (max-width: 1100px) {
  body { --main-width: min(780px, calc(100% - 40px)); }
  .header-inner { gap: 10px; padding-right: 16px; padding-left: 16px; }
  .brand { font-size: 20px; }
  .header-nav { gap: 2px; }
  .header-nav a { padding-right: 8px; padding-left: 8px; }
  .header-nav--utility { padding-left: 10px; }
  .language-switch button { min-width: 32px; padding: 6px; }
  .offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
  .side-box { position: static; width: auto; height: auto; padding: 24px; overflow: visible; }
  .offer-domain-mark { margin-top: 16px; }
  .offer-price strong { font-size: 38px; }
  .domain-offer { display: flex; flex-direction: column; align-items: flex-start; }
  .domain-offer .offer-button { margin-top: auto; }
  .side-box h2 { font-size: 23px; }
  .side-service h2 { font-size: 21px; }
}

@media (max-width: 700px) {
  body {
    --main-width: calc(100% - 32px);
  }
  main { padding: 28px 0 56px; }
  .header-inner { gap: 10px; min-height: 84px; padding: 18px 16px; }
  .brand { min-height: 36px; font-size: 20px; }
  .header-nav { gap: 4px; }
  .header-nav a { padding: 10px 8px; font-size: 12px; }
  .checker { padding: 27px 20px 20px; border-radius: 12px; }
  h1 { font-size: 28px; margin-bottom: 22px; }
  h2 { font-size: 26px; }
  .buying { margin-top: 44px; }
  .question { padding: 26px 0; }
  .question h3 { font-size: 17px; padding-left: 39px; }
  .question h3 .question-number { width: 27px; height: 27px; border-radius: 7px; }
  .question p { margin-left: 0; font-size: 15px; line-height: 1.8; }
  .question table { width: 100%; margin-left: 0; font-size: 12px; }
  .question th, .question td { padding: 10px; }
  .contact { margin-top: 52px; padding: 24px 20px; border-radius: 12px; }
  .contact h2 { font-size: 24px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .contact-actions button { width: 100%; }
  .side-box { height: auto; border-radius: 12px; }
  .service-card { padding: 20px; }
  .product-hero { padding: 26px 22px; }
  .product-page main { width: calc(100% - 32px); }
}

@media (max-width: 540px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 22px; }
  .plan-index { margin-bottom: 14px; }
  .plan-card ul { margin-bottom: 18px; }
  .service-cards, .offers-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
  .service-icon { grid-row: 1 / 4; margin: 0; }
  .service-card h2, .service-card p, .service-card .text-link { grid-column: 2; }
  .service-card p { margin-bottom: 4px; }
  .domain-offer { display: block; }
  .offer-domain-mark { display: none; }
  .domain-offer h2 { margin-top: 12px; }
  .offer-price { flex-direction: row; align-items: baseline; gap: 7px; }
  .side-box--right { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .side-service + .side-service { margin: 0; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--line); }
  .side-service h2 { font-size: 18px; }
  .side-service .text-link { align-items: flex-start; gap: 5px; }
}

@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .header-nav a { padding-right: 9px; padding-left: 9px; font-size: 12px; }
  .contact { padding-right: 14px; padding-left: 14px; }
  .checker { padding-right: 14px; padding-left: 14px; }
  h1 { font-size: 25px; }
  input, button { font-size: 13px; }
  input { padding-right: 10px; padding-left: 10px; }
}

@media (max-height: 480px) {
  .side-box { top: 96px; }
}

@media (max-height: 480px) and (min-width: 1101px) {
  .side-box { height: calc(100vh - 120px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-nav a { transition: none; }
  input, button { transition: none; }
}
