/* Smart home devices and automation — starter kits for beginners
   палитра: светлая-нейтральная | стиль: пилюли | код: layout-компонент
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #ffffff;
  --color-text: #16181d;
  --color-muted: #5b6270;
  --color-accent: #2f5bd6;
  --color-surface: #f4f6fa;
  --color-on-accent: #ffffff;

  --font-heading: 'Figtree', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  --radius: 999px;
  --shadow: 0 10px 30px rgb(0 0 0 / .16);
  --container: 70rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.125rem); margin: 0 0 1.1em; max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.l-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden;
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.l-section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}

/* шапка */
.c-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.c-header--transparent { background: transparent; border-bottom-color: transparent; }
.c-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.c-header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.c-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.c-nav__link { display: block; padding: .5rem .9rem; border-radius: var(--radius);
  color: var(--color-text); text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease; }
.c-nav__link:hover { background: var(--color-surface); }
.c-nav__link.js-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.c-nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.c-header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.c-header__burger span { width: 22px; height: 2px; background: var(--color-text); }

/* футер */
.c-footer { background: var(--color-surface); }
.c-footer--contrast { background: var(--color-text); color: var(--color-bg); }
.c-footer--contrast a { color: inherit; }
.c-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.c-footer__row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.c-footer__brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.c-footer__tagline { opacity: .75; font-size: .95rem; }
.c-footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.c-footer__address { font-style: normal; line-height: 1.7; }
.c-footer__hours { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.c-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.c-footer__cookie { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.c-footer__bottom { display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-size: .85rem; opacity: .75;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
.c-footer__bottom p { margin: 0; }

/* кнопки */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.c-btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.c-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.c-btn--ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.c-btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.c-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.c-form input, .c-form textarea {
  width: 100%; padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit;
}
.c-form input:focus, .c-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.c-form [aria-invalid="true"] { border-color: #c62828; }
.c-form__error { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.c-form__ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.c-form__consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.c-form__consent input { width: auto; margin: .25rem 0 0; }

/* плашка cookie */
.c-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1080;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12);
  transform: translateY(100%); transition: transform .35s ease;
}
.c-cookie.js-visible { transform: translateY(0); }
.c-cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.c-cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.c-cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.c-cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.c-cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.c-cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.c-cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

/* правовые страницы */
.c-legal { background: var(--color-bg); }
.c-legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.c-legal h2 { margin-top: 2.2rem; }
.c-legal h3 { margin-top: 1.4rem; }
.c-legal__updated { color: var(--color-muted); font-size: .9rem; }
.c-legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.c-legal__table th, .c-legal__table td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.c-legal__table th { width: 34%; font-weight: 600; }
.c-legal__back { margin-top: 2.5rem; }
/* анимации: без JS всё видно */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991px) {
  .c-footer__inner { grid-template-columns: 1fr 1fr; }
  .c-cookie__inner { flex-direction: column; align-items: stretch; }
  .c-cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .c-header__burger { display: flex; }
  .c-header__cta { display: none; }
  .c-nav { display: none; width: 100%; }
  .c-nav.js-open { display: block; }
  .c-nav__list { flex-direction: column; padding-block: .6rem; }
  .c-header__inner { flex-wrap: wrap; }
  .c-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .c-footer__bottom, .c-footer__row { flex-direction: column; }
  .c-cookie__actions .c-btn { flex: 1 1 auto; }
}
