:root {
  color-scheme: light;
  --paper: #f3f8fc;
  --white: #ffffff;
  --ink: #102941;
  --muted: #425b6f;
  --line: #d0e1ed;
  --brand-blue: #02a5d3;
  --accent: #0075aa;
  --blue: #0b416c;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

*, *::after, *::before { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-padding-top: calc(var(--header-height, 77px) + 12px); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #0075aa; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.02; }
p { text-wrap: pretty; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-150%); padding: 12px 16px; background: var(--white); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-home { display: flex; align-items: center; gap: 9px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 900; letter-spacing: -.05em; line-height: 1; white-space: nowrap; text-decoration: none; }
.brand-mark { flex: none; width: 69px; height: auto; }
.header nav { display: flex; align-items: center; gap: 5px; }
.header nav a, .header-phone, .header-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-back { flex: none; width: 44px; padding: 0; border: 1px solid var(--line); color: var(--blue); }
.header nav a:hover, .header-phone:hover, .header-back:hover { background: #edf7fc; color: var(--blue); }
.header nav a[aria-current="location"] { background: #e2f1f9; color: #075986; }
.text-link:hover, .catalog-card li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-icon { position: relative; display: inline-block; flex: none; width: 17px; height: 17px; }
.nav-icon::before, .nav-icon::after { position: absolute; content: ""; }
.nav-icon--catalog::before {
  inset: 1px auto auto 1px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 9px 0 currentColor, 0 9px currentColor, 9px 9px currentColor;
}
.nav-icon--calculator::before { inset: 0 2px; border: 1.5px solid currentColor; border-radius: 3px; }
.nav-icon--calculator::after {
  inset: 4px 5px;
  background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    radial-gradient(circle at 1px 6px, currentColor 1px, transparent 1.5px),
    radial-gradient(circle at 6px 6px, currentColor 1px, transparent 1.5px),
    radial-gradient(circle at 1px 9px, currentColor 1px, transparent 1.5px),
    radial-gradient(circle at 6px 9px, currentColor 1px, transparent 1.5px);
  bottom: 3px;
}
.nav-icon--contacts::before {
  inset: 1px 2px auto;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
}
.nav-icon--contacts::after { inset: 5px auto auto 7px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.nav-icon--phone {
  background: currentColor;
  clip-path: path("M3.8 1.4h2l1.1 3.7-1.6 1.5a11.7 11.7 0 0 0 5 5l1.6-1.6 3.7 1.1v2c0 1-.6 1.8-1.6 1.8C7.6 15 2 9.4 2 3c0-1 .8-1.6 1.8-1.6Z");
}
.nav-icon--back::before { inset: 7.5px 1px auto 2px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-icon--back::after { inset: 4.5px auto auto 2px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }

.hero { display: grid; grid-template-columns: .84fr 1fr; align-items: stretch; gap: 54px; padding-block: clamp(48px, 6vw, 88px) 36px; }
.hero-copy { align-self: center; }
.eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); }
.hero h1 { font-size: clamp(64px, 8.6vw, 126px); font-weight: 900; line-height: .91; letter-spacing: -.092em; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 37ch; margin-block: 26px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 17px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 800; font-size: 15px; cursor: pointer; }
.button span { font-size: 18px; line-height: 1; }
.button .button-label { font-size: inherit; line-height: inherit; }
.button.accent { background: var(--accent); color: white; }
.button.accent:hover { background: #075986; }
.button.ink { background: var(--ink); color: white; }
.button.ink:hover { background: #254b68; }
.button.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.outline:hover { background: #ffffff60; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-decoration: none; }
.hero-media { display: flex; flex-direction: column; align-self: center; min-width: 0; margin: 0; border-radius: 6px; overflow: hidden; background: #102b43; color: #fff; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 1680 / 883; object-fit: contain; }
.hero-media figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; padding: 12px 15px; font-size: 13px; }
.hero-media figcaption strong { font-size: 16px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); border-block: 1px solid var(--line); }
.quick-links a { display: flex; gap: 5px; min-width: 0; justify-content: space-between; padding: 15px 23px; text-decoration: none; font-size: 14px; font-weight: 800; }
.quick-links a:first-child { padding-left: 0; }
.quick-links a:last-child { padding-right: 0; }
.quick-links a + a { border-left: 1px solid var(--line); }
.quick-links a:hover { color: var(--accent); }

@media (min-width: 701px) and (max-width: 1200px) {
  .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-links a:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .quick-links a:nth-child(n+5) { border-top: 1px solid var(--line); }
  .quick-links a:nth-child(4n) { padding-right: 0; }
  .quick-links a:last-child { grid-column: span 2; border-left: 1px solid var(--line); padding-left: 23px; }
}

.section { padding-block: clamp(56px, 7.7vw, 112px); }
.section h2, .quote h2 { font-weight: 900; font-size: clamp(40px, 5.65vw, 78px); letter-spacing: -.075em; }
.section-heading { display: flex; align-items: flex-end; gap: 26px; justify-content: space-between; margin-bottom: 28px; }
.search { display: grid; gap: 5px; width: min(100%, 268px); font-size: 13px; font-weight: 700; }
.search input, .quote-form input:not([type="checkbox"]), .quote-form textarea, .quote-form select, .estimate-controls input:not([type="checkbox"]), .estimate-controls select { min-width: 0; width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #91adbf; border-radius: 5px; color: var(--ink); background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 700; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters button:hover:not([aria-pressed="true"]) { background: #e3f2fb; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catalog-card { display: flex; flex-direction: column; padding: clamp(18px, 2.25vw, 31px); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.category-mark { display: inline-grid; place-items: center; align-self: flex-start; flex-shrink: 0; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 5px; background: #d6f0f9; color: #075986; font-size: 24px; font-weight: 900; }
.catalog-card[data-group-card="wide"] .category-mark, .catalog-card[data-group-card="signs"] .category-mark { background: #e2eaf8; }
.catalog-card[data-group-card="documents"] .category-mark, .catalog-card[data-group-card="other"] .category-mark { background: #e9f3f8; }
.catalog-card h3 { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.055em; text-wrap: balance; }
.catalog-card h3 a { text-decoration: none; }
.catalog-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.catalog-card ul { display: flex; flex-direction: column; gap: 5px; padding: 0; margin: 19px 0; list-style: none; }
.catalog-card li a { font-size: 14px; text-decoration: none; }
.catalog-more { display: flex; justify-content: space-between; gap: 5px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; text-decoration: none; }
.catalog-more:hover { color: var(--accent); }
.empty { padding-block: 20px; }

.price-section { background: var(--blue); color: #fff; }
.price-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(18px, 4vw, 33px); }
.price-heading > p { max-width: 38ch; font-size: 16px; color: #ddf0fa; }
.price-heading .eyebrow { color: #9de7f8; }
.quote-inner, .contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 104px); align-items: start; }
.quote-inner > div > p { max-width: 41ch; margin-top: 20px; font-size: 16px; }
.estimate-card { display: grid; grid-template-columns: minmax(250px, .83fr) minmax(0, 1.17fr); gap: clamp(18px, 4vw, 56px); min-width: 0; padding: clamp(16px, 3vw, 32px); border-radius: 8px; background: var(--white); color: var(--ink); }
.estimate-controls, .estimate-preview { min-width: 0; }
.estimate-card.single-panel { grid-template-columns: minmax(0, 1fr); }
.calculator-fields { display: grid; gap: 12px; }
.estimate-controls > label:not([hidden]) { margin-bottom: 12px; }
.calculator-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.estimate-controls label, .quote-form label { display: grid; min-width: 0; gap: 6px; font-size: 13px; font-weight: 800; }
.estimate-controls .calculator-check { display: flex; align-items: center; gap: 10px; }
.calculator-check input { order: -1; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.quantity-shortcuts { display: flex; flex-wrap: wrap; gap: 5px; }
.quantity-shortcuts button { min-width: 43px; min-height: 35px; border-radius: 4px; border: 1px solid var(--line); background: #f2f8fd; color: var(--ink); cursor: pointer; font-size: 13px; }
.quantity-shortcuts button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.price-spec { margin-top: 12px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.price-note { margin-top: 4px; color: #305c7f; font-size: 13px; }
.estimate-total { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 13px; padding-top: 17px; margin-top: 15px; border-top: 1px solid var(--line); }
.estimate-total > div > span { display: block; font-size: 13px; color: var(--muted); }
.estimate-total output { display: block; margin-top: 5px; font-size: clamp(26px, 4vw, 46px); font-weight: 900; letter-spacing: -.06em; line-height: 1.05; }
.quote { padding-block: clamp(56px, 7.7vw, 112px); background: #e1f1fb; }
.quote-email { display: inline-block; margin-top: 20px; font-weight: 700; text-underline-offset: 4px; }
.quote-form { display: grid; gap: 14px; min-width: 0; }
.quote-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-form textarea { resize: vertical; min-height: 110px; }
.quote-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.quote-consent { display: grid; gap: 4px; }
.quote-consent label { display: flex; align-items: start; gap: 6px; font-weight: 600; }
.quote-consent a { justify-self: start; margin-left: 24px; font-size: 12px; text-underline-offset: 3px; }
.quote-actions button:disabled { cursor: default; opacity: .62; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-status { min-height: 1.5em; font-size: 13px; }
.contacts { align-items: end; }
.contact-values { display: flex; flex-wrap: wrap; align-items: end; gap: 20px 35px; }
.contact-values a { text-underline-offset: 4px; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; padding-block: 17px; }
.footer-inner > span, .footer-inner > a:not(.brand) { font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 5px 15px; }
.footer-legal a { color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--accent); }

.detail { min-height: 68vh; padding-top: 43px; }
main[data-service-hidden] #prices { display: none !important; }
.crumbs { margin-bottom: 31px; font-size: 13px; color: var(--muted); }
.crumbs a { text-underline-offset: 4px; }
.detail h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -.08em; overflow-wrap: anywhere; }
.detail .lead { max-width: 52ch; margin-block: 18px 26px; color: var(--muted); font-size: clamp(17px, 2vw, 23px); }
.custom-price { margin-top: 12px; color: var(--muted); font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(230px, 2fr); gap: 26px 55px; align-items: start; }
.detail-with-example h1 { font-size: clamp(43px, 6.3vw, 87px); overflow-wrap: normal; }
.detail-with-example .detail-panel { margin-top: 25px; }
.service-example { align-self: start; margin: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--white); }
.service-example img { display: block; width: 100%; height: auto; }
.service-example figcaption { padding: 11px 14px; color: var(--muted); font-size: 13px; }
.detail-panel { border: 1px solid var(--line); border-radius: 5px; background: var(--white); padding: clamp(17px, 3vw, 32px); }
.detail-panel h2, .service-price h2, .related h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.06em; }
.detail-panel ul { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 22px; }
.info-page .lead { max-width: 62ch; }
.info-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; gap: 16px; margin: 34px 0; }
.info-panels .detail-panel { height: 100%; box-sizing: border-box; }
.info-panels .detail-panel h2 { font-size: clamp(22px, 2.6vw, 30px); }
.info-panels .detail-panel p, .info-panels .detail-panel li { color: var(--muted); line-height: 1.6; }
.info-panels .detail-panel p { margin-block: 13px 0; }
.info-panels .text-link { display: inline-block; margin-top: 17px; }
.boat-service-info { margin-top: 38px; }
.boat-service-info > h2 { max-width: 22ch; font-size: clamp(28px, 3.4vw, 45px); letter-spacing: -.06em; }
.boat-service-info > p { max-width: 80ch; margin-top: 14px; color: var(--muted); line-height: 1.6; }
.boat-service-info .info-panels { margin-block: 24px 16px; }
.boat-service-info .detail-panel h3 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -.03em; }
.boat-service-info .detail-panel p, .boat-service-info .detail-panel li { color: var(--muted); line-height: 1.6; }
.boat-service-info .detail-panel p { margin-top: 13px; }
.boat-apply-guide ol { display: grid; gap: 12px; padding-left: 22px; margin: 16px 0 0; }
.group-list, .related { margin-top: 38px; }
.related { margin-bottom: 45px; }
.group-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.group-list > a { display: flex; justify-content: space-between; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); text-decoration: none; }
.group-list > a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.group-list strong, .group-list div > span { display: block; }
.group-list div > span { margin-top: 3px; font-size: 14px; color: var(--muted); }
.related > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.related a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: 14px; }
.related a:hover { background: var(--white); }

@media (max-width: 1020px) {
  .container { width: calc(100% - 56px); }
  .hero { gap: 26px; }
  .hero h1 { font-size: clamp(60px, 9vw, 94px); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--header-height, 110px) + 12px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding-block: 8px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .header .brand { font-size: 24px; }
  .header .brand-mark { width: 53px; }
  .header-phone { font-size: 13px; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .header nav { justify-content: space-between; gap: 4px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 53px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 41px 22px; }
  .hero h1 { font-size: clamp(61px, 14vw, 92px); }
  .hero-description { margin-block: 17px 20px; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .quick-links a, .quick-links a:first-child, .quick-links a:last-child { padding: 10px 8px; font-size: 13px; }
  .quick-links a:nth-child(odd) { border-left: 0; padding-left: 0; }
  .quick-links a:nth-child(even) { padding-right: 0; }
  .quick-links a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick-links a:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .section-heading { display: grid; gap: 18px; }
  .catalog-grid, .quote-inner, .contacts, .detail-grid, .group-list, .estimate-card { grid-template-columns: minmax(0, 1fr); }
  .price-heading { display: grid; }
  .contact-values { gap: 15px 24px; }
  .detail h1 { font-size: clamp(43px, 12vw, 66px); }
}

@media (max-width: 480px) {
  .header-phone { width: 44px; padding: 0; border: 1px solid var(--line); color: var(--blue); }
  .header-phone-number { display: none; }
}

@media (max-width: 410px) {
  .brand { gap: 6px; font-size: 19px; }
  .brand-mark { width: 45px; }
  .header .brand { font-size: 19px; }
  .header .brand-mark { width: 45px; }
  .header nav a { padding-inline: 6px; gap: 5px; font-size: 12px; }
  .quote-contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .header nav a { padding-inline: 4px; }
}

@media (max-height: 520px) {
  html { scroll-padding-top: 16px; }
  .header { position: relative; }
}
