/* DIY home accessories and crafts — handmade gifts
   палитра: тёмная-винная | стиль: пилюли | код: сокращённый
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #171114;
  --color-text: #f4eef1;
  --color-muted: #a4939b;
  --color-accent: #d4557f;
  --color-surface: #221a1e;
  --color-on-accent: #171114;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

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

*, *::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.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; }

.cnt {
  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); }

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

/* шапка */
.hd {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.hd-tra { background: transparent; border-bottom-color: transparent; }
.hd-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.hd-bra { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.nv-lis { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nv-lin { 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; }
.nv-lin:hover { background: var(--color-surface); }
.nv-lin.is-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nv-spl { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.hd-bur { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.hd-bur span { width: 22px; height: 2px; background: var(--color-text); }

/* кнопки */
.bt {
  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;
}
.bt-pri { background: var(--color-accent); color: var(--color-on-accent); }
.bt-pri:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bt-gho { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.bt-gho:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.fm label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.fm input, .fm 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;
}
.fm input:focus, .fm textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.fm [aria-invalid="true"] { border-color: #c62828; }
.fm-err { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.fm-ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.fm-con { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.fm-con input { width: auto; margin: .25rem 0 0; }

/* правовые страницы */
.lg { background: var(--color-bg); }
.lg-inn { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lg h2 { margin-top: 2.2rem; }
.lg h3 { margin-top: 1.4rem; }
.lg-upd { color: var(--color-muted); font-size: .9rem; }
.lg-tab { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.lg-tab th, .lg-tab td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.lg-tab th { width: 34%; font-weight: 600; }
.lg-bac { margin-top: 2.5rem; }

/* футер */
.ft { background: var(--color-surface); }
.ft-con { background: var(--color-text); color: var(--color-bg); }
.ft-con a { color: inherit; }
.ft-inn { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.ft-row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.ft-bra { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.ft-tag { opacity: .75; font-size: .95rem; }
.ft-tit { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.ft-add { font-style: normal; line-height: 1.7; }
.ft-hou { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.ft-lin { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ft-ck { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.ft-bot { 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); }
.ft-bot p { margin: 0; }

/* плашка cookie */
.ck {
  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;
}
.ck.is-visible { transform: translateY(0); }
.ck-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.ck-tex p { margin: 0; font-size: .92rem; max-width: 70ch; }
.ck-act { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.ck-con { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ck-opt { display: grid; gap: .6rem; margin-top: 1rem; }
.ck-opt { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.ck-opt span { grid-column: 2; font-weight: 400; opacity: .75; }
/* анимации: без 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) {
  .ft-inn { grid-template-columns: 1fr 1fr; }
  .ck-inn { flex-direction: column; align-items: stretch; }
  .ck-act { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .hd-bur { display: flex; }
  .hd-cta { display: none; }
  .nv { display: none; width: 100%; }
  .nv.is-open { display: block; }
  .nv-lis { flex-direction: column; padding-block: .6rem; }
  .hd-inn { flex-wrap: wrap; }
  .ft-inn { grid-template-columns: 1fr; gap: 2rem; }
  .ft-bot, .ft-row { flex-direction: column; }
  .ck-act .bt { flex: 1 1 auto; }
}

/* Секционные раскладки: her — hero, crd — карточка, ben — бенто,
   tml — таймлайн, quo — цитата, not — выноски, sld — слайдер. */
.sec { position: relative; isolation: isolate; }
.sec > .cnt > h2 + p { color: var(--color-muted); margin-bottom: 2rem; }
.sec img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.crd {
  padding: 2rem 2.25rem;
  border-radius: 28px;
  background: var(--color-bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
section:nth-of-type(odd) .crd { background: var(--color-surface); }
.crd > :last-child { margin-bottom: 0; }

/* Первый экран: 7/5 и смещённая геометрия. */
.her { min-height: 84vh; display: flex; align-items: center; overflow: hidden; }
.her .cnt { padding-block: 2rem; }
.her h1 { max-width: 12ch; }
.her .bt { margin: .4rem .55rem .4rem 0; }
.her-med { position: relative; padding: 1.25rem; }
.her-med::before {
  content: "";
  position: absolute;
  inset: 7% -10% -2% 12%;
  z-index: -1;
  border-radius: 46% 54% 68% 32% / 45% 38% 62% 55%;
  background: var(--color-accent);
  transform: rotate(-7deg);
}
.her-med img { aspect-ratio: 5 / 6; }

/* Текст + фото. */
#about img, #topic-09 img { aspect-ratio: 3 / 2; }
#topic-11 img, #our-story img, #team img, #service-process img { aspect-ratio: 5 / 6; }

/* Бенто. */
.ben { display: grid; gap: 1.25rem; margin-top: 2rem; }
.ben .crd { min-height: 13rem; justify-content: flex-end; }
.ben .ben-big {
  min-height: 22rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* Широкое фото. */
#topic-02 img { aspect-ratio: 2 / 1; margin: 2rem 0; }
#topic-02 .cnt > p:not(.sc-eye) { margin-inline: auto; }

/* Вертикальный таймлайн. */
.tml { list-style: none; margin: 2.5rem 0 2rem; padding: 0 0 0 3.5rem; counter-reset: step; }
.tml li { position: relative; padding: 0 0 2rem 1.5rem; counter-increment: step; }
.tml li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -3.5rem; top: -.25rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 700;
}
.tml li::after {
  content: ""; position: absolute; left: -2.15rem; top: 2.5rem; bottom: -.25rem;
  width: 2px; background: var(--color-accent); opacity: .45;
}
.tml li:last-child::after { display: none; }
.tml p { color: var(--color-muted); }

/* Цитата-заливка. */
.quo, section.quo:nth-of-type(even) { background: var(--color-accent); color: var(--color-on-accent); }
.quo .sc-eye { color: var(--color-on-accent); opacity: .72; }
.quo h2 { max-width: 23ch; font-size: clamp(2rem, 5vw, 3.75rem); }
.quo p:not(.sc-eye) { margin-left: auto; }

/* Четыре плитки. */
#topic-05 .row { margin-top: 2rem; }
#topic-05 .crd span {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  margin-bottom: 1.5rem; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 800;
}

/* Счётчики. */
#topic-06 .row { margin-top: 2.25rem; }
#topic-06 .row > div { padding: 1.5rem; text-align: center; }
.num { display: block; color: var(--color-accent); font: 700 clamp(3rem, 8vw, 5.5rem)/1 var(--font-heading); }
#topic-06 .row p { font-size: 1rem; margin: .8rem auto 0; }

/* Таблицы. */
.table-responsive { border-radius: 28px; box-shadow: var(--shadow); margin-top: 2rem; }
.sec .table { --bs-table-bg: var(--color-bg); --bs-table-color: var(--color-text); margin: 0; }
.sec .table th, .sec .table td { min-width: 9rem; padding: 1rem 1.15rem; border-color: color-mix(in srgb, var(--color-muted) 25%, transparent); }
.sec .table thead th { color: var(--color-accent); }

/* Галерея из трёх кадров. */
#topic-08 figure { display: flex; flex-direction: column; margin-bottom: 0; }
#topic-08 figure img { aspect-ratio: 1; }
#topic-08 figcaption { flex: 1; padding: 1.25rem .35rem 0; color: var(--color-muted); }
#topic-08 figcaption strong { color: var(--color-text); }

/* Слайдеры. */
.sld-wrap { position: relative; margin-top: 2rem; padding-bottom: 3.75rem; }
.swiper { width: 100%; overflow: hidden; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }
.sld-wrap > [data-slider-prev], .sld-wrap > [data-slider-next] { position: absolute; bottom: 0; padding: .55rem 1.2rem; }
.sld-wrap > [data-slider-prev] { left: 0; }
.sld-wrap > [data-slider-next] { right: 0; }
.swiper-pagination { bottom: .75rem !important; pointer-events: none; }
.swiper-pagination-bullet { background: var(--color-muted); opacity: .55; }
.swiper-pagination-bullet-active { background: var(--color-accent); opacity: 1; }

/* Фото-текст и текст с выносками. */
#topic-11 .row, #topic-09 .row { align-items: center; }
.not { display: grid; gap: 1rem; margin-top: 2.25rem; }
.not aside {
  align-self: start; padding: .65rem 1rem; border-radius: var(--radius);
  background: var(--color-accent); color: var(--color-on-accent); text-align: center;
}
.not p { margin: 0 0 1rem; }

/* Три карточки и крупный нумерованный список. */
#topic-13 .row { margin-top: 2rem; align-items: stretch; }
.big-list { list-style: none; padding: 0; margin: 2.25rem 0 0; counter-reset: item; }
.big-list li {
  counter-increment: item; display: grid; grid-template-columns: 4rem 1fr;
  gap: 1rem; padding: 1.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 28%, transparent);
}
.big-list li::before { content: counter(item, decimal-leading-zero); color: var(--color-accent); font: 700 2.25rem/1 var(--font-heading); }
.big-list p { color: var(--color-muted); margin-bottom: 0; }

/* Тарифы одной высоты, CTA внизу. */
.price { position: relative; }
.price > strong { display: block; margin-top: .5rem; color: var(--color-accent); font: 700 clamp(2.4rem, 5vw, 3.5rem)/1 var(--font-heading); }
.price > strong + span { color: var(--color-muted); }
.price ul { margin: 1.5rem 0; padding-left: 1.25rem; }
.price li { margin-bottom: .55rem; }
.price .bt { margin-top: auto; }
.price.is-rec { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.price .badge { align-self: flex-start; margin: -1rem 0 1rem; padding: .55rem 1rem; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); }
#service-plans .row > article { display: flex; }

/* FAQ. */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--color-text); --bs-accordion-border-color: transparent; margin-top: 2rem; }
.accordion-item { margin-bottom: .9rem; border: 0; border-radius: 28px !important; overflow: hidden; background: var(--color-bg); box-shadow: var(--shadow); }
section:nth-of-type(odd) .accordion-item { background: var(--color-surface); }
.accordion-button, .accordion-button:not(.collapsed) { padding: 1.25rem 1.5rem; color: var(--color-text); background: transparent; box-shadow: none; font: 700 1.05rem/1.35 var(--font-heading); }
.accordion-button::after { filter: invert(1); }
.accordion-body { padding: 0 1.5rem 1.5rem; color: var(--color-muted); }

/* Контакты и внутренние страницы. */
#contacts .row > div:last-child, #contact-details .row > div:last-child {
  padding: 2rem 2.25rem; border-radius: 28px; background: var(--color-bg); box-shadow: var(--shadow);
}
#contacts address, #contact-details address { font-style: normal; line-height: 1.9; }
#contacts .fm .bt, #contact-details .fm .bt { margin-top: 1rem; }
#about-hero, #services-hero { min-height: 72vh; display: flex; align-items: center; }
#about-hero img, #services-hero img { aspect-ratio: 5 / 6; }
#our-approach .crd, #principles .crd { min-height: 100%; }
#about-cta .cnt, #services-cta .cnt { text-align: center; }
#about-cta p, #services-cta p { margin-inline: auto; }
#about-cta .bt { margin: .4rem; }
#location iframe { display: block; border-radius: 28px; box-shadow: var(--shadow); margin: 2rem 0; }

@media (min-width: 576px) {
  .ben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .not { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.25rem 2rem; }
  .big-list li { grid-template-columns: 5rem 1fr; gap: 1.5rem; }
}

@media (min-width: 768px) {
  .ben { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(10rem, auto); }
  .ben .ben-big { grid-column: span 2; grid-row: span 2; }
  .ben .crd:not(.ben-big) { grid-column: span 2; }
  #topic-02 .cnt > p:not(.sc-eye) { max-width: 58rem; }
  #topic-06 .row > div + div { border-left: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
}

@media (min-width: 992px) {
  .her .row > :first-child { transform: translateY(-2rem); }
  .her-med { transform: translate(1.25rem, 2rem); }
  .ben { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ben .crd:not(.ben-big) { grid-column: span 1; }
  .quo h2 { margin-left: 8%; }
  .quo p:not(.sc-eye) { max-width: 50rem; margin-right: 6%; }
  .big-list { max-width: 58rem; margin-left: auto; }
  #contacts .row > div:first-child { padding-right: 3rem; }
}

@media (max-width: 575px) {
  .sec img { aspect-ratio: 4 / 3; }
  .her { min-height: 84vh; }
  .her-med { padding: .75rem; }
  .crd, #contacts .row > div:last-child, #contact-details .row > div:last-child { padding: 1.5rem; }
  #topic-06 .row > div { flex: 0 0 100%; max-width: 100%; }
  .big-list li { grid-template-columns: 3.25rem 1fr; }
  .sld-wrap > [data-slider-prev], .sld-wrap > [data-slider-next] { font-size: .9rem; padding-inline: 1rem; }
}
