/* Smart home devices and automation — starter kits for beginners
   палитра: тёмная-глубокая | стиль: острый-строгий | код: layout-компонент
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #101319;
  --color-text: #eef1f6;
  --color-muted: #9aa3b2;
  --color-accent: #4c8dff;
  --color-surface: #1a1f29;
  --color-on-accent: #08111f;

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

  --radius: 0;
  --shadow: none;
  --container: 68rem;
}

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

html {
  overflow-x: hidden;
}

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

/* .swiper-pagination (vendor) всегда z-index:10 и растянута на всю ширину —
   кнопки листания не должны оказаться под ней, с каким бы z-index их ни
   поставила секционная раскладка. */
[data-slider-prev], [data-slider-next] { z-index: 20 !important; }

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.9rem, 3.6vw, 2.75rem); }
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(3.5rem, 7vw, 6rem) 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.has-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.has-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.has-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; }
}

/* Секционные раскладки */
.l-grid { display: grid; gap: 1.5rem; }
.c-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.c-hero { min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.l-grid--hero { align-items: center; }
.c-hero__copy { position: relative; z-index: 1; }
.c-hero__media { position: relative; padding: 1.25rem 0 0 1.25rem; }
.c-hero__shape { position: absolute; inset: 0 12% 12% 0; background: var(--color-accent); }
.c-hero__media img,
.c-hero > .l-container > img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.l-grid--split { align-items: center; }
.l-grid--split > img,
#contact-form img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.c-card,
.c-price,
.c-stat,
.c-figure,
.c-testimonial {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
}
.c-card,
.c-price,
.c-stat,
.c-testimonial { padding: 1.75rem; }
.c-card,
.c-price { display: flex; flex-direction: column; height: 100%; }
.c-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: -1.75rem -1.75rem 1.35rem; max-width: calc(100% + 3.5rem); }
.c-card > p:last-child { margin-bottom: 0; }

.c-slider-shell { position: relative; margin-top: 2rem; padding-inline: 2.75rem; }
.c-slider-shell .swiper { padding-bottom: 3rem; }
.c-slider-shell .swiper-wrapper { align-items: stretch; }
.c-slider-shell .swiper-slide { height: auto; }
.c-slider__prev,
.c-slider__next {
  position: absolute; top: calc(50% - 1.5rem); width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-muted); background: var(--color-bg); color: var(--color-text);
  font: inherit; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.c-slider__prev { left: 0; }
.c-slider__next { right: 0; }
.c-slider__prev:hover,
.c-slider__next:hover { background: var(--color-accent); color: var(--color-on-accent); }
.swiper-pagination-bullet { background: var(--color-muted); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--color-accent); }

.l-grid--three { margin-top: 2rem; align-items: stretch; }
.c-figure { display: flex; flex-direction: column; height: 100%; margin: 0; background: var(--color-bg); }
.c-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.c-figure figcaption { flex: 1; padding: 1.25rem; color: var(--color-muted); }
.c-figure strong { display: block; color: var(--color-text); }

.c-timeline { position: relative; list-style: none; margin: 2.5rem 0; padding: 0 0 0 2.25rem; }
.c-timeline::before { content: ''; position: absolute; left: .5rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--color-muted); }
.c-timeline li { position: relative; margin-bottom: 1.5rem; }
.c-timeline li::before { content: ''; position: absolute; left: -2.1rem; top: .45rem; width: .75rem; height: .75rem; background: var(--color-accent); }
.c-timeline li > div { padding: 1.5rem; border: 1px solid var(--color-muted); }
.c-timeline li p { margin-bottom: 0; }

.l-grid--stats { margin-block: 2rem; grid-template-columns: repeat(2, 1fr); }
.c-stat { display: grid; align-content: center; min-height: 9rem; }
.c-stat strong { color: var(--color-accent); font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: .9; }
.c-stat span { margin-top: .8rem; color: var(--color-muted); }

.l-grid--bento { margin-top: 2rem; }
.l-grid--bento .c-card { background: var(--color-bg); }
.l-grid--bento .c-card--featured { background: var(--color-accent); color: var(--color-on-accent); }
.l-grid--bento .c-card--featured img { margin-top: auto; padding-top: 1rem; }

.l-grid--columns { margin-block: 2rem; }
.l-grid--columns > * { padding-top: 1.25rem; border-top: 1px solid var(--color-muted); }

.table-responsive { margin-block: 2rem; border: 1px solid var(--color-muted); }
.c-table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.c-table th,
.c-table td { padding: 1rem; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent); }
.c-table thead { background: var(--color-accent); color: var(--color-on-accent); }
.c-table tbody th { color: var(--color-text); }

.c-number-list { list-style: none; counter-reset: errors; margin: 2rem 0; padding: 0; }
.c-number-list li { counter-increment: errors; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--color-muted); }
.c-number-list li::before { content: counter(errors, decimal-leading-zero); color: var(--color-accent); font-size: 1.5rem; font-weight: 700; }
.c-number-list li:last-child { border-bottom: 1px solid var(--color-muted); }
.c-number-list p { margin-bottom: 0; }

.c-wide-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 2rem 0; border: 1px solid var(--color-muted); }
.c-quote-section { background: var(--color-accent) !important; color: var(--color-on-accent); }
.c-quote-section .l-section__eyebrow { color: var(--color-on-accent); }
.c-quote-section blockquote { max-width: 23ch; margin: 1.5rem 0 2rem; font-size: clamp(1.8rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.15; }

.l-grid--tiles { margin-block: 2rem; }
.c-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }

.c-asides { display: grid; gap: 1rem; margin-block: 2rem; }
.c-asides aside { padding: 1.25rem; border-left: .35rem solid var(--color-accent); background: var(--color-bg); }
.c-asides aside strong,
.c-asides aside span { display: block; }
.c-asides aside span { color: var(--color-muted); }
.c-asides > div { padding-bottom: 1rem; border-bottom: 1px solid var(--color-muted); }

.c-slider-shell--quotes { max-width: 52rem; margin-inline: auto; }
.c-testimonial { display: grid; align-content: center; min-height: 19rem; text-align: center; }
.c-testimonial blockquote { margin: 0 auto 1.5rem; max-width: 36ch; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
.c-testimonial p { margin-inline: auto; color: var(--color-muted); }

.l-grid--pricing { margin-top: 2rem; align-items: stretch; }
.c-price { position: relative; background: var(--color-bg); }
.c-price--featured { border: 2px solid var(--color-accent); }
.c-price__badge { align-self: flex-start; margin: -1.75rem 0 1.25rem; padding: .35rem .7rem; background: var(--color-accent); color: var(--color-on-accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.c-price__amount { color: var(--color-accent); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1; }
.c-price ul { margin-bottom: 1.5rem; padding-left: 1.25rem; }
.c-price > .c-btn { width: 100%; margin-top: auto; }
.c-price__note { margin-top: 1rem; color: var(--color-muted); font-size: .9rem; }

.accordion { margin-top: 2rem; border-top: 1px solid var(--color-muted); }
.accordion-item { background: transparent; color: var(--color-text); border: 0; border-bottom: 1px solid var(--color-muted); border-radius: 0 !important; }
.accordion-button { padding: 1.25rem 0; background: transparent; color: var(--color-text); font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--color-accent); }
.accordion-button::after { filter: invert(1); }
.accordion-body { padding: 0 0 1.5rem; color: var(--color-muted); }

#contacts .l-container,
#about-cta .l-container,
#contact-hero .l-container { text-align: center; }
#contacts .l-container > p,
#about-cta .l-container > p,
#contact-hero .l-container > p { margin-inline: auto; }
#contacts .c-actions,
#about-cta .c-actions { justify-content: center; }

.l-grid--contact { margin-top: 2rem; }
.c-contact { padding: 1.5rem; margin-bottom: 2rem; border-left: .35rem solid var(--color-accent); background: var(--color-bg); font-style: normal; }
#contact-details iframe { width: 100%; min-height: 23.75rem; border: 1px solid var(--color-muted) !important; }
#contact-form .c-form { padding: 1.75rem; border: 1px solid var(--color-muted); background: var(--color-bg); }

@media (min-width: 576px) {
  .c-asides { grid-template-columns: minmax(9rem, .6fr) 2fr; align-items: start; }
  .c-slider-shell { padding-inline: 3.5rem; }
}

@media (min-width: 768px) {
  .l-grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
  .l-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .l-grid--stats { grid-template-columns: repeat(4, 1fr); }
  .l-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--contact { grid-template-columns: .85fr 1.15fr; gap: 3rem; }
  .c-timeline { padding-left: 0; }
  .c-timeline::before { left: 50%; }
  .c-timeline li { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .c-timeline li:nth-child(odd) > div { grid-column: 1; text-align: right; }
  .c-timeline li:nth-child(even) > div { grid-column: 2; }
  .c-timeline li::before { left: calc(50% - .375rem); }
}

@media (min-width: 992px) {
  .l-grid--hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .c-hero__media { transform: translateY(2rem); }
  .l-grid--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, auto); }
  .l-grid--bento .c-card--featured { grid-row: span 2; grid-column: span 2; }
  .l-grid--bento .c-card--featured img { height: 14rem; }
  .c-number-list { max-width: 50rem; }
}

@media (max-width: 575px) {
  .c-actions { align-items: stretch; flex-direction: column; }
  .c-actions .c-btn { width: 100%; }
  .c-slider-shell { padding-inline: 0; padding-bottom: 3rem; }
  .c-slider__prev,
  .c-slider__next { top: auto; bottom: 0; }
  .c-slider__prev { left: calc(50% - 3rem); }
  .c-slider__next { right: calc(50% - 3rem); }
  .l-grid--pricing,
  .l-grid--three,
  .l-grid--tiles,
  .l-grid--contact { grid-template-columns: 1fr; }
  .c-table th,
  .c-table td { padding: .75rem; }
}
