/* ============================================================
   Damistö — плоский (flat) дизайн, только светлая тема
   Палитра: белый + голубой, акцент жёлтый. Без теней/градиентов.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --tint: #e8f2fb; /* голубая подложка секций */
  --tint-strong: #d3e7f8;
  --border: #bcd6ee;

  /* Text */
  --text: #143251;
  --text-muted: #46617d;

  /* Primary — голубой */
  --primary: #1b7fd1;
  --primary-dark: #14639f;

  /* Accent — жёлтый */
  --accent: #ffd21f;
  --accent-hover: #f2c200;
  --accent-ink: #3a2e00;

  --radius: 6px;

  --font-display: "Clash Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;

  --text-sm: 0.9rem;
  --text-base: 1.02rem;
  --text-lg: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);

  --gap: 1.5rem;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
}
svg {
  display: block;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role="list"] {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
a,
button {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* ===== buttons (flat) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: var(--text-base);
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover {
  background: var(--accent-hover);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--primary);
}
.btn--light:hover {
  background: var(--tint);
}

/* ===== brand ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 1.1rem;
}
.brand__dot {
  color: var(--accent);
}

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav a {
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--primary);
}
.header__cta {
  flex: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 clamp(1rem, 4vw, 1.75rem) 1rem;
  border-bottom: 2px solid var(--border);
}
.mobile-nav a {
  padding: 0.7rem 0.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn {
  margin-top: 0.75rem;
}
.mobile-nav.open {
  display: flex;
}

/* ===== hero ===== */
.hero {
  background: var(--tint);
  border-bottom: 2px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
}
.hero__lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== sections ===== */
.section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.section--tint {
  background: var(--tint);
  border-block: 2px solid var(--border);
}
.section__head {
  max-width: 56ch;
  margin-bottom: 2rem;
}
.section__title {
  font-size: var(--text-xl);
}
.section__sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-top: 0.6rem;
}

/* about */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about__text p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  max-width: 54ch;
}

/* products — 3 категории */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cat-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  border-color: var(--primary);
}
.cat-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-card__body h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}
.cat-card__body p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 1rem;
}

/* why */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.why-item {
  padding: 1.35rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.why-item__ico {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  margin-bottom: 0.9rem;
}
.why-item h3 {
  font-size: var(--text-base);
  margin-bottom: 0.35rem;
}
.why-item p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* CTA banner */
.cta-banner {
  background: var(--primary);
  color: #fff;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.cta-banner__text h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.35rem;
}
.cta-banner__text p {
  color: #d9ecfb;
  max-width: 48ch;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* contacts */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contacts__list {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.contacts__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contacts__ico {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--tint-strong);
  color: var(--primary);
}
.contacts__list strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.contacts__list a:hover {
  color: var(--primary);
}
.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== PHOTO BLOCKS ===== */
.photo-slot {
  display: block;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.photo-slot img,
.photo-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-slot img {
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}

/* HERO */
.photo-slot--hero {
  aspect-ratio: 4/3;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* ABOUT */
.photo-slot--about {
  aspect-ratio: 4/3;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

/* PRODUCT CARDS */
.photo-slot--card {
  aspect-ratio: 16/10;
  border: 0;
  border-bottom: 2px dashed var(--primary);
  border-radius: 0;
  background: var(--bg);
}

/* MAP */
.photo-slot--map {
  aspect-ratio: 16/12;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.photo-slot--map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== footer ===== */
.footer {
  background: #123049;
  color: #c3d6e7;
  padding-block: 2.75rem 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer .brand__mark {
  background: #fff;
  color: var(--primary);
}
.footer__brand p {
  color: #8fa8bf;
  max-width: 36ch;
  font-size: var(--text-sm);
}
.footer__col h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: 0.75rem;
}
.footer__col a,
.footer__col span {
  display: block;
  color: #c3d6e7;
  font-size: var(--text-sm);
  margin-bottom: 0.4rem;
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #7f97ad;
}

/* ===== responsive ===== */
@media (max-width: 960px) {
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero__grid,
  .about__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .about__media,
  .hero__media {
    order: -1;
  }
  .products__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 520px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}
