:root{
  /* Palette (ONLY these hex colors) */
  --c-ink: #0F0F0F;
  --c-accent: #FFC400;
  --c-surface: #F2F2F2;
  --c-charcoal: #2B2B2B;

  /* RGB channels (to build alpha colors) */
  --ink-rgb: 15 15 15;
  --accent-rgb: 255 196 0;
  --surface-rgb: 242 242 242;
  --charcoal-rgb: 43 43 43;

  /* Type */
  --font-title: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --radius-lg: 26px;
  --trust-media-h: 260px;

  /* Map sizing */
  --map-h: clamp(18rem, 32vw, 30rem);
  --map-h-mobile: 16rem;

  /* Tokens (derived from palette) */
  --bg-page: rgb(var(--surface-rgb) / 1);
  --bg-dark: rgb(var(--charcoal-rgb) / 1);

  /* Alpha swatches (still from palette, but stored as vars) */
  --ink-00: rgb(var(--ink-rgb) / 0);
  --ink-05: rgb(var(--ink-rgb) / 0.05);
  --ink-10: rgb(var(--ink-rgb) / 0.10);
  --ink-12: rgb(var(--ink-rgb) / 0.12);
  --ink-14: rgb(var(--ink-rgb) / 0.14);
  --ink-18: rgb(var(--ink-rgb) / 0.18);
  --ink-22: rgb(var(--ink-rgb) / 0.22);
  --ink-24: rgb(var(--ink-rgb) / 0.24);
  --ink-28: rgb(var(--ink-rgb) / 0.28);
  --ink-35: rgb(var(--ink-rgb) / 0.35);

  --surface-12: rgb(var(--surface-rgb) / 0.12);
  --surface-18: rgb(var(--surface-rgb) / 0.18);
  --surface-92: rgb(var(--surface-rgb) / 0.92);

  --charcoal-15: rgb(var(--charcoal-rgb) / 0.15);
  --charcoal-70: rgb(var(--charcoal-rgb) / 0.70);
  --charcoal-72: rgb(var(--charcoal-rgb) / 0.72);

  --text-strong: rgb(var(--ink-rgb) / 0.92);
  --text: rgb(var(--ink-rgb) / 0.84);
  --text-muted: rgb(var(--ink-rgb) / 0.72);

  --text-on-dark: rgb(var(--surface-rgb) / 0.94);
  --text-on-dark-muted: rgb(var(--surface-rgb) / 0.84);

  --border-accent: 2px solid var(--c-accent);

  --card-glass: rgb(var(--surface-rgb) / 0.3);

  --shadow-1: 0 10px 28px var(--ink-18);
  --shadow-2: 0 8px 18px var(--ink-12);
  --shadow-3: 0 10px 22px var(--ink-22);

  --overlay-hero-a: var(--ink-22);
  --overlay-hero-b: var(--ink-05);
  --overlay-dark-a: var(--ink-28);
  --overlay-dark-b: var(--ink-35);

  --adv-pill-bg: var(--surface-92);
  --adv-card-bg: var(--charcoal-70);
  --adv-card-border: 1px solid var(--surface-18);

  --service-card-bg: var(--ink-14);

  --input-bg: var(--surface-12);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ font-size: 100%; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-page);
}

.inner{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5px;
}
@media (min-width: 1441px){
  .inner{ padding: 0; }
}

.section{ width: 100%; }

/* Header */
.site-header{ background: var(--bg-page); }

.header-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* equal widths */
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo{
  width: 56px;
  height: 56px;
  border: 0;               /* no border */
  border-radius: 6px;
  background: var(--bg-page);
  padding: 0;
  display: block;
  object-fit: contain;
}

.header-title{
  justify-self: center;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.header-contacts{
  justify-self: end;
  display: grid;
  justify-content: end;
  gap: 6px;
  text-align: right;
}

.contact{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem; /* 14px */
}

.contact:hover{ text-decoration: underline; }

.ico{
  width: 18px;
  text-align: center;
  font-size: 0.875rem; /* 14px */
  color: var(--text);
}

/* Hero */
.hero{
  background:
    linear-gradient(to bottom, var(--overlay-hero-a), var(--overlay-hero-b)),
    url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 44px 0 56px;
}

.hero-inner{ display: grid; place-items: center; }

.hero-card{
  width: min(820px, 100%);
  background: var(--card-glass);
  border: var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

.hero-card h1{
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.625rem; /* 26px */
  color: var(--text-strong);
}

.hero-sub{
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 500;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-title);
}

.btn-primary{
  background: var(--c-accent);
  color: var(--c-ink);
}

.btn-primary:hover{ filter: brightness(0.97); }
.btn-wide{ padding: 12px 26px; }

/* Titles */
.section-title{ padding: 22px 0 8px; text-align: center; }

.section-title h2{
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.125rem; /* 18px */
  color: var(--text-strong);
}

.accent-line{
  width: 88px; height: 4px;
  border-radius: 999px;
  background: var(--c-accent);
  margin: 10px auto 0;
}

.section-title--on-dark h2{ color: var(--text-on-dark); }

/* Trust */
.trust{
  background: var(--bg-page);
  padding-bottom: 22px;
}

.trust-rows{
  display: grid;
  gap: 26px;
  padding: 16px 0 26px;
}

.trust-row{
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.trust-row:nth-child(even){ flex-direction: row-reverse; }

.trust-text{
  flex: 1 1 0;
  padding: 6px;
}

.trust-text h3{
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9375rem; /* 15px */
  color: var(--text-strong);
}

.trust-text p{
  margin: 0 0 10px;
  font-size: 0.75rem; /* 12px */
  line-height: 1.45;
  color: var(--text);
}

.trust-media{ flex: 2 1 0; }

.media-frame{
  height: var(--trust-media-h);
  border-radius: 22px;
  border: var(--border-accent);
  overflow: hidden;
  background: var(--charcoal-15);
  box-shadow: var(--shadow-2);
}

.media-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px){
  .trust-row{ flex-direction: column; gap: 14px; }
  .trust-row:nth-child(even){ flex-direction: column; }
  .media-frame{ height: 210px; border-radius: 20px; }
}

/* Achievements */
.achievements{
  background:
    linear-gradient(to bottom, var(--overlay-dark-a), var(--overlay-dark-b)),
    url("img/ach-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 18px 0 28px;
}

.ach-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 14px 0 10px;
  justify-items: center;
}

.badge{
  width: 168px; height: 168px;
  border-radius: 999px;
  border: var(--border-accent);
  background: var(--charcoal-72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.badge-num{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.875rem; /* 30px */
  color: var(--c-accent);
  line-height: 1;
}

.badge-label{
  margin-top: 0;
  color: var(--c-accent);
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
}

/* Services */
.services{ background: var(--bg-dark); padding: 18px 0 28px; }

.service-list{ display: grid; gap: 14px; padding: 12px 0 18px; }

.service-card{
  border: var(--border-accent);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: var(--service-card-bg);
  color: var(--text-on-dark);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.service-card:hover,
.service-card:focus-within{
  background: var(--c-accent);
  color: var(--c-ink);
  transform: translateY(-1px);
}

.service-card h3{
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.875rem; /* 14px */
  color: inherit;
}

.service-card p{
  margin: 0 0 8px;
  font-size: 0.75rem; /* 12px */
  line-height: 1.45;
  color: var(--text-on-dark);
  transition: color 200ms ease;
}

.service-card:hover p,
.service-card:focus-within p{
  color: var(--c-ink);
}

.services-cta{ display: grid; place-items: center; padding: 2px 0 10px; }

/* Advantages */
.advantages{
  background:
    linear-gradient(to bottom, var(--overlay-dark-a), var(--overlay-dark-b)),
    url("img/adv-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px 0 28px;
}

.advantages-title-pill{
  width: fit-content;
  margin: 0 auto 14px;
  background: var(--adv-pill-bg);
  border-radius: 12px;
  padding: 8px 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-3);
}

.advantages-title-pill span{
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.875rem; /* 14px */
  color: var(--text-strong);
}

.pill-line{
  display: block;
  height: 4px;
  width: 70px;
  margin: 8px auto 0;
  background: var(--c-accent);
  border-radius: 999px;
}

.adv-rows{
  display: grid;
  gap: 14px;
  justify-items: center;
}

.adv-row{
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
}

/* mobile/default: icon left, text right */
.adv-row--top,
.adv-row--bottom{
  grid-template-columns: 1fr;
}

.adv-card{
  width: 100%;
  max-width: 380px;
  min-height: 86px;
  border-radius: 12px;
  background: var(--adv-card-bg);
  border: var(--adv-card-border);
  box-shadow: var(--shadow-3);
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  padding: 10px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.adv-ico{
  color: var(--c-accent);
  font-size: 1.125rem; /* 18px */
  text-align: center;
}

.adv-text{
  color: var(--text-on-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8125rem; /* 13px */
}

/* Desktop: 3 top / 2 bottom + icon ABOVE text */
@media (min-width: 981px){
  .adv-row--top{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1040px;
    margin: 0 auto;
  }

  .adv-row--bottom{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 700px;
    margin: 0 auto;
  }

  .adv-card{
    max-width: none;
    min-height: 118px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    text-align: center;
    row-gap: 10px;
    padding: 14px 16px;
  }

  .adv-ico{ font-size: 1.25rem; } /* 20px */
  .adv-text{ max-width: 18ch; }
}

/* Contacts */
.contacts{ background: var(--bg-dark); padding: 24px 0 22px; }

.contacts-grid{
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 18px;
}

.contacts-title{
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: 0.6px;
  font-size: 1rem; /* 16px */
}

.contact-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.ci{
  color: var(--c-accent);
  font-size: 1rem; /* 16px */
  line-height: 1.2;
  margin-top: 2px;
}

.cl-title{
  color: var(--text-on-dark-muted);
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
  margin-bottom: 4px;
}

.cl-val{
  color: var(--text-on-dark);
  font-size: 0.75rem; /* 12px */
  text-decoration: none;
}

a.cl-val:hover{ text-decoration: underline; }

.form-card{
  background: var(--ink-24);
  border: var(--border-accent);
  border-radius: 16px;
  padding: 14px 14px 12px;
  color: var(--text-on-dark);
  box-shadow: var(--shadow-1);
}

.form-card h3{
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.875rem; /* 14px */
}

.form-sub{ margin: 0 0 14px; color: var(--text-on-dark-muted); font-size: 0.75rem; }

.field{ display: grid; gap: 6px; margin-bottom: 10px; }
.field span{ font-size: 0.6875rem; color: var(--text-on-dark-muted); } /* 11px */

.field input,
.field textarea{
  width: 100%;
  border-radius: 10px;
  border: 0;
  outline: none;
  padding: 10px 12px;
  background: var(--input-bg);
  color: var(--text-on-dark);
}

.field textarea{ resize: vertical; min-height: 90px; }

/* Fineprint (lock + text on next line) */
.fineprint{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  color: var(--text-on-dark-muted);
  font-size: 0.6875rem; /* 11px */
  text-align: left;
}

.fp-ico{
  color: var(--c-accent);
  font-size: 1rem; /* 16px */
  line-height: 1;
}

/* Map / Footer */
.map{ background: var(--bg-page); }

.map iframe{
  width: 100%;
  height: var(--map-h);
  display: block;
  filter: grayscale(50%);
}

.footer-bar{ background: var(--bg-dark); }

.footer-inner{
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--text-on-dark-muted);
  text-align: center;
  font-size: 0.75rem; /* 12px */
}

/* Mobile */
@media (max-width: 980px){
  .header-row{
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    justify-items: stretch;
    text-align: left;
  }

  .header-title{ display: none; }

  .header-contacts{
    justify-self: end;
    justify-content: end;
    justify-items: end;
    gap: 6px;
  }

  .contact{ justify-content: flex-end; font-size: 0.75rem; } /* 12px */
  .brand-logo{ width: 46px; height: 46px; }

  .hero{ padding: 26px 0 34px; }
  .hero-card{ padding: 18px 14px; }
  .hero-card h1{ font-size: 1.125rem; } /* 18px */

  .ach-grid{ grid-template-columns: 1fr; gap: 14px; }
  .badge{ width: 170px; height: 170px; }

  .contacts-grid{ grid-template-columns: 1fr; }
  .contacts-right{ order: 1; }
  .contacts-left{ order: 2; }

  .map iframe{
    height: var(--map-h-mobile);
  }
}
