/* ==========================================================================
   АВЕТА — design tokens
   Brand colours sampled directly from assets/img/logo.png
   ========================================================================== */

:root {
  /* --- brand ramp (from the logo) --- */
  --brand-950: #051428;
  --brand-900: #071B38;
  --brand-800: #082246;
  --brand-700: #0E2E63;
  --brand-600: #14489F;   /* dominant logo blue — primary */
  --brand-500: #0052A4;
  --brand-400: #0073BE;   /* logo highlight — accent */
  --brand-300: #4A9BD8;
  --brand-200: #A8CCEA;
  --brand-100: #E3EDF9;
  --brand-50:  #F2F7FC;
  --silver:    #D3D3D3;

  /* --- neutrals --- */
  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  /* #64748B (the usual slate-500) only reaches 4.23:1 on --surface-sunken;
     this darker step clears AA on every light surface used here. */
  --ink-500: #56657A;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;

  --danger-600: #B42318;
  --danger-50:  #FEF3F2;
  --success-600: #067647;
  --success-50:  #ECFDF3;

  /* --- semantic (light) --- */
  --bg:              #F6F8FB;
  --surface:         #FFFFFF;
  --surface-alt:     #F2F7FC;
  --surface-sunken:  #EDF2F9;
  --border:          #DDE5EF;
  --border-strong:   #C3D1E2;
  --text:            var(--ink-900);
  --text-muted:      var(--ink-600);
  --text-subtle:     var(--ink-500);
  --primary:         var(--brand-600);
  --primary-hover:   var(--brand-700);
  --primary-active:  var(--brand-800);
  --on-primary:      #FFFFFF;
  --accent:          var(--brand-400);
  --focus:           var(--brand-400);
  --scrim:           rgba(7, 27, 56, .55);

  --hero-bg:         var(--brand-800);
  --hero-text:       #FFFFFF;
  --hero-muted:      #BFD3EC;

  /* --- elevation --- */
  --shadow-xs: 0 1px 2px rgba(8, 34, 70, .06);
  --shadow-sm: 0 1px 3px rgba(8, 34, 70, .08), 0 1px 2px rgba(8, 34, 70, .04);
  --shadow-md: 0 4px 12px rgba(8, 34, 70, .08), 0 2px 4px rgba(8, 34, 70, .04);
  --shadow-lg: 0 12px 32px rgba(8, 34, 70, .12), 0 4px 8px rgba(8, 34, 70, .05);

  /* --- radius --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* --- spacing (4/8 rhythm) --- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  /* --- type --- */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --icon-sm: 18px;
  --icon-md: 24px;
  --icon-lg: 28px;

  /* --- motion --- */
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-exit: 150ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in:  cubic-bezier(.4, 0, 1, 1);

  /* --- layout --- */
  --shell: 1200px;
  --header-h: 72px;

  /* --- z-index scale --- */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-header: 100; --z-overlay: 1000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:             #0A1424;
    --surface:        #10203A;
    --surface-alt:    #0D1B30;
    --surface-sunken: #0C1729;
    --border:         #1E3355;
    --border-strong:  #2A456E;
    --text:           #EAF1FA;
    --text-muted:     #A9BFDA;
    --text-subtle:    #8AA4C4;
    --primary:        #5B9BE8;
    --primary-hover:  #7BB0EF;
    --primary-active: #9AC4F5;
    --on-primary:     #06172E;
    --accent:         #57B4E8;
    --focus:          #7BB0EF;
    --scrim:          rgba(3, 10, 20, .7);

    --hero-bg:        #071B38;
    --hero-text:      #F3F8FF;
    --hero-muted:     #A9BFDA;

    --danger-600: #FF9A8F;
    --danger-50:  #2A1512;
    --success-600: #6EE7A8;
    --success-50:  #0C2418;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .5);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sprite g { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex: none;
  color: inherit;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-overlay);
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px)  { .shell { padding-inline: var(--space-6); } }
@media (min-width: 1280px) { .shell { padding-inline: var(--space-5); } }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn .icon { width: var(--icon-sm); height: var(--icon-sm); }
.btn:active { transform: scale(.98); }

.btn-primary   { --btn-bg: var(--primary); --btn-fg: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover  { --btn-bg: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-primary:active { --btn-bg: var(--primary-active); }

.btn-quiet   { --btn-bg: var(--surface); --btn-fg: var(--text-muted); --btn-bd: var(--border); }
.btn-quiet:hover { --btn-bg: var(--surface-alt); --btn-fg: var(--text); --btn-bd: var(--border-strong); }

.btn-invert  { --btn-bg: #FFFFFF; --btn-fg: var(--brand-800); }
.btn-invert:hover { --btn-bg: var(--brand-50); }

.btn-ghost-light {
  --btn-fg: #FFFFFF;
  --btn-bd: rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-bd: rgba(255, 255, 255, .6); }

.btn-lg { min-height: 52px; padding: var(--space-4) var(--space-6); font-size: 1rem; }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: .875rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border-strong); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; border-radius: var(--r-sm); }
.brand-mark { height: 34px; width: auto; display: block; }
@media (min-width: 768px) { .brand-mark { height: 40px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark,
  :root:not([data-theme="light"]) .footer-logo { filter: brightness(1.28) saturate(1.1); }
}

.nav { display: none; margin-inline: auto; gap: var(--space-1); }
@media (min-width: 1024px) { .nav { display: flex; } }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text); background: var(--surface-alt); }

.nav-link::after {
  content: "";
  position: absolute;
  left: var(--space-4); right: var(--space-4);
  bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-link.is-active { color: var(--primary); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (min-width: 1024px) { .header-actions { margin-left: 0; } }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.lang-toggle:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text); }
.lang-toggle .icon { width: var(--icon-sm); height: var(--icon-sm); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* mobile nav sheet */
@media (max-width: 1023px) {
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: var(--space-3) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: sheet-in var(--dur-base) var(--ease-out);
  }
  .nav.is-open .nav-link {
    min-height: 52px;
    padding-inline: var(--space-3);
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav-link:last-child { border-bottom: 0; }
  .nav.is-open .nav-link::after { display: none; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(0, 115, 190, .45), transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(20, 72, 159, .55), transparent 62%),
    linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 55%, var(--brand-950) 100%);
  color: var(--hero-text);
  scroll-margin-top: 0;
}

.hero-bg { position: absolute; inset: 0; color: rgba(168, 204, 234, .13); pointer-events: none; }
.hero-lattice { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 70%, transparent));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: var(--z-raised);
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-8) var(--space-9);
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: var(--space-8);
    padding-block: var(--space-9);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 3px; height: 15px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow-on-dark { color: var(--brand-200); }

.hero-title {
  font-size: clamp(2.125rem, 5.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.028em;
  margin-bottom: var(--space-4);
  max-width: 17ch;
}

.hero-sub {
  max-width: 56ch;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stat dd {
  order: -1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat dt { color: var(--hero-muted); font-size: .875rem; line-height: 1.4; margin-top: var(--space-1); }

/* hero price preview panel */
.hero-panel {
  padding: var(--space-5);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.hero-panel-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero-panel-head .icon { width: var(--icon-sm); height: var(--icon-sm); color: var(--brand-200); }
.hero-panel-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-200);
}

.hero-preview { display: grid; gap: var(--space-2); }
.hero-preview-item {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-md);
}
.hero-preview-name { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.hero-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  color: var(--hero-muted);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.hero-preview-meta b { color: #FFFFFF; font-weight: 600; }

.hero-preview-skeleton { display: grid; gap: var(--space-2); }
.hero-preview-skeleton span {
  height: 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .12);
  animation: shimmer 1.4s ease-in-out infinite;
}
.hero-preview-skeleton span:first-child { width: 78%; }
.hero-preview-skeleton span:last-child  { width: 46%; }
@keyframes shimmer { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }

.hero-panel-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-3);
  color: #FFFFFF;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-panel-link .icon { width: var(--icon-sm); height: var(--icon-sm); transition: transform var(--dur-base) var(--ease-out); }
.hero-panel-link:hover { text-decoration: underline; }
.hero-panel-link:hover .icon { transform: translate(2px, -2px); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }

.section-tight { padding-block: var(--space-7); }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

.section-title { font-size: clamp(1.625rem, 3.4vw, 2.375rem); margin-bottom: var(--space-3); }
.section-sub { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 68ch; }

/* category strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  min-height: 108px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.cat-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cat-chip:active { background: var(--surface-alt); }
.cat-chip .icon { color: var(--primary); }
.cat-chip-count { color: var(--text-subtle); font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--brand-100);
  border-radius: var(--r-md);
  color: var(--brand-600);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .service-icon,
  :root:not([data-theme="light"]) .contact-icon,
  :root:not([data-theme="light"]) .about-check { background: rgba(91, 155, 232, .16); color: var(--primary); }
}

.service-title { font-size: 1.125rem; font-weight: 700; }
.service-text { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  margin-top: var(--space-1);
  color: var(--primary);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.service-link-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--primary);
  border-radius: var(--r-full);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.service-link-circle .icon { width: var(--icon-sm); height: var(--icon-sm); }
.service-link:hover .service-link-circle { background: var(--primary); color: var(--on-primary); }
.service-link:hover .service-link-label { text-decoration: underline; }

/* ==========================================================================
   Catalog — filters
   ========================================================================== */

.filters {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 900px) {
  .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.field { display: grid; gap: var(--space-2); min-width: 0; }

.field-label { font-size: .875rem; font-weight: 600; color: var(--text); display: inline-flex; gap: var(--space-1); }
.field-help  { font-size: .8125rem; color: var(--text-subtle); line-height: 1.5; }

.req { color: var(--danger-600); text-decoration: none; border: 0; font-weight: 700; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: var(--space-3);
  width: var(--icon-sm); height: var(--icon-sm);
  color: var(--text-subtle);
  pointer-events: none;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-subtle); }
.input:hover { border-color: var(--primary); }
.input:focus-visible { border-color: var(--primary); }
.input-with-icon { padding-left: calc(var(--space-4) + var(--icon-sm)); padding-right: 52px; }

.input[aria-invalid="true"] { border-color: var(--danger-600); background: var(--danger-50); }

.select {
  appearance: none;
  padding-right: calc(var(--space-4) + 20px);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356657A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238AA4C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

.textarea { min-height: 116px; resize: vertical; line-height: 1.6; }

.input-clear {
  position: absolute;
  right: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-subtle);
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.input-clear:hover { color: var(--text); background: var(--surface-alt); }
.input-clear .icon { width: var(--icon-sm); height: var(--icon-sm); }

.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block: var(--space-5) var(--space-4);
}
.catalog-bar-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.result-count { color: var(--text-muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }

.catalog-loading { color: var(--text-subtle); padding-block: var(--space-6); text-align: center; }

/* ==========================================================================
   Catalog — table (>=1024px)
   ========================================================================== */

/* Below 1024px the same data is rendered as cards; above it, as a table. */
.table-wrap { display: none; }
@media (min-width: 1024px) { .table-wrap { display: block; } }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}

.price-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }

.price-table thead th {
  padding: 0;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: bottom;
}

.th-sort {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  width: 100%;
  min-height: 60px;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.th-sort:hover { background: var(--brand-100); color: var(--primary); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-sort:hover { background: rgba(91, 155, 232, .14); }
}
.th-sort-end { justify-content: flex-end; text-align: right; }
.th-sort-end > span { display: grid; }
.th-note { display: block; color: var(--text-subtle); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.th-sort-icon { width: 16px; height: 16px; color: var(--text-subtle); flex: none; margin-bottom: 2px; }

th[aria-sort="ascending"]  .th-sort, th[aria-sort="descending"] .th-sort { color: var(--primary); }
th[aria-sort="ascending"]  .th-sort-icon,
th[aria-sort="descending"] .th-sort-icon { color: var(--primary); }

.price-table tbody tr { border-bottom: 1px solid var(--border); transition: background-color var(--dur-fast) var(--ease-out); }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--surface-alt); }

.price-table td { padding: var(--space-4); vertical-align: middle; }

.cell-name { font-weight: 600; line-height: 1.4; color: var(--text); }
.cell-desc { display: block; margin-top: 2px; color: var(--text-subtle); font-size: .8125rem; font-weight: 400; line-height: 1.45; }

.col-year { width: 130px; }
.col-num  { width: 190px; }
.col-action { width: 130px; }

td.col-year { font-variant-numeric: tabular-nums; color: var(--text-muted); }
td.col-num  { text-align: right; font-variant-numeric: tabular-nums; }
td.col-action { text-align: right; }

.price-value { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.rent-value  { font-weight: 600; color: var(--text); white-space: nowrap; }
.rent-note   { color: var(--text-subtle); font-size: .8125rem; font-weight: 400; line-height: 1.4; text-align: right; display: block; }

.row-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--primary);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.row-cta:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ==========================================================================
   Catalog — cards (<1024px)
   ========================================================================== */

.card-list { display: grid; gap: var(--space-3); }
@media (min-width: 1024px) { .card-list { display: none; } }

/* The [hidden] attribute must always win over the responsive display rules. */
.table-wrap[hidden], .card-list[hidden], .state-panel[hidden] { display: none !important; }

.price-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.price-card-head { display: grid; gap: var(--space-1); }
.price-card-name { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.price-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  background: var(--brand-100);
  border-radius: var(--r-full);
  color: var(--brand-600);
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .meta-pill { background: rgba(91, 155, 232, .16); color: var(--primary); }
}

.price-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.price-card-cell { display: grid; gap: 2px; min-width: 0; }
.price-card-cell dt { color: var(--text-subtle); font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.price-card-cell dd { font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-card-cell .rent-note { text-align: left; font-size: .75rem; }
.price-card .row-cta { justify-self: start; }

/* ==========================================================================
   State panels
   ========================================================================== */

.state-panel {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-5);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  text-align: center;
}
.state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--surface-sunken);
  border-radius: var(--r-full);
  color: var(--text-subtle);
}
.state-icon-danger { background: var(--danger-50); color: var(--danger-600); }
.state-icon-ok     { background: var(--success-50); color: var(--success-600); }
.state-title { font-size: 1.125rem; }
.state-text  { color: var(--text-muted); max-width: 48ch; }

.catalog-footnote {
  margin-top: var(--space-5);
  color: var(--text-subtle);
  font-size: .8125rem;
  line-height: 1.6;
  max-width: 90ch;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
}
.about-copy .btn { margin-top: var(--space-5); }

.about-points { display: grid; gap: var(--space-4); }
.about-point {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.about-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: none;
  background: var(--brand-100);
  border-radius: var(--r-full);
  color: var(--brand-600);
}
.about-check .icon { width: var(--icon-sm); height: var(--icon-sm); }
.about-point-title { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.about-point-text  { color: var(--text-muted); font-size: .9375rem; line-height: 1.55; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 55%, var(--brand-500) 100%);
  color: #FFFFFF;
}
.cta-inner {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-7); padding-block: var(--space-8); }
}
.cta-title { font-size: clamp(1.375rem, 2.8vw, 2rem); margin-bottom: var(--space-2); }
.cta-text  { color: rgba(255, 255, 255, .88); max-width: 60ch; line-height: 1.6; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: var(--space-8); }
}

.form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  color: var(--danger-600);
  font-size: .8125rem;
  line-height: 1.5;
  font-weight: 500;
}
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; flex: none; margin-top: 2px;
  background: var(--danger-600); color: var(--surface);
  border-radius: var(--r-full); font-size: .625rem; font-weight: 700; }

.form-errors {
  padding: var(--space-4);
  background: var(--danger-50);
  border: 1px solid var(--danger-600);
  border-radius: var(--r-md);
}
.form-errors-title { color: var(--danger-600); font-weight: 700; font-size: .9375rem; margin-bottom: var(--space-2); }
.form-errors-list { display: grid; gap: var(--space-1); }
.form-errors-list a { color: var(--danger-600); font-size: .875rem; }

.form-submit { justify-self: start; position: relative; }
.form-consent { color: var(--text-subtle); font-size: .8125rem; line-height: 1.55; max-width: 56ch; }

.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: currentColor;
  border-radius: var(--r-full);
  animation: spin .7s linear infinite;
}
.is-submitting .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-6);
  background: var(--success-50);
  border: 1px solid var(--success-600);
  border-radius: var(--r-lg);
  text-align: left;
}
.form-success .state-text { max-width: 52ch; }

.contact-details {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.contact-details-title { font-size: 1.0625rem; margin-bottom: var(--space-4); }
.contact-list { display: grid; gap: var(--space-4); }
.contact-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: none;
  background: var(--brand-100);
  border-radius: var(--r-md);
  color: var(--brand-600);
}
.contact-icon .icon { width: var(--icon-sm); height: var(--icon-sm); }
.contact-label { display: block; color: var(--text-subtle); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.contact-value { display: inline-flex; align-items: center; min-height: 28px; color: var(--text); font-size: .9375rem; font-weight: 600; line-height: 1.45; }
/* Tappable values get a full 44px hit area; the negative margin keeps the
   visual rhythm of the list unchanged. */
a.contact-value { min-height: 44px; margin-block: -8px; color: var(--primary); text-decoration: none; }
a.contact-value:hover { text-decoration: underline; }

.placeholder-hint {
  display: block;
  margin-top: 2px;
  color: var(--text-subtle);
  font-size: .6875rem;
  font-style: italic;
}
[data-placeholder] { border-bottom: 1px dashed var(--border-strong); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--brand-900);
  color: #C9DAF0;
  padding-top: var(--space-8);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
}

.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-7); } }

.footer-logo { height: 38px; width: auto; margin-bottom: var(--space-4); }
.footer-tagline { color: #9FB8D8; font-size: .9375rem; line-height: 1.6; max-width: 42ch; }

.footer-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}
.footer-links { display: grid; gap: var(--space-1); }
.footer-links a, .footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #C9DAF0;
  font-size: .9375rem;
  line-height: 1.45;
  text-decoration: none;
}
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-links [data-placeholder] { border-bottom-color: rgba(201, 218, 240, .3); }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-legal { color: #9FB8D8; font-size: .8125rem; line-height: 1.6; }
.footer-disclaimer { display: block; margin-top: var(--space-1); }

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--surface-alt); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:active { transform: none; }
}

/* ==========================================================================
   Print — the price list should print cleanly
   ========================================================================== */

@media print {
  .site-header, .hero, .cta-band, .site-footer, .to-top,
  .filters, .catalog-bar, .service-grid, .cat-strip,
  #contact, #about, .card-list { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .table-wrap { border: 0; box-shadow: none; }
  .price-table thead th { position: static; background: #FFFFFF; }
  .col-action, td.col-action { display: none; }
}
