/* DIY home accessories and crafts — macrame and textiles
   палитра: тёплая-песочная | стиль: острый-строгий | код: префикс-двухбуквенный
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #fdf9f3;
  --color-text: #2a2118;
  --color-muted: #6b5b48;
  --color-accent: #b4622a;
  --color-surface: #f5ece0;
  --color-on-accent: #ffffff;

  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-body: 'Roboto', 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; }

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

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

/* шапка */
.ct-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);
}
.ct-header--transparent { background: transparent; border-bottom-color: transparent; }
.ct-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.ct-header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.ct-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.ct-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; }
.ct-nav__link:hover { background: var(--color-surface); }
.ct-nav__link.has-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.ct-nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.ct-header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.ct-header__burger span { width: 22px; height: 2px; background: var(--color-text); }

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

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

/* плашка cookie */
.ct-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;
}
.ct-cookie.has-visible { transform: translateY(0); }
.ct-cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.ct-cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.ct-cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.ct-cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ct-cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.ct-cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.ct-cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

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

/* правовые страницы */
.ct-legal { background: var(--color-bg); }
.ct-legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ct-legal h2 { margin-top: 2.2rem; }
.ct-legal h3 { margin-top: 1.4rem; }
.ct-legal__updated { color: var(--color-muted); font-size: .9rem; }
.ct-legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.ct-legal__table th, .ct-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; }
.ct-legal__table th { width: 34%; font-weight: 600; }
.ct-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) {
  .ct-footer__inner { grid-template-columns: 1fr 1fr; }
  .ct-cookie__inner { flex-direction: column; align-items: stretch; }
  .ct-cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

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

/* Секционные раскладки */
.ct-card {
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius);
  background: var(--color-bg);
}

main section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--color-muted);
}

main section h2 + p { margin-bottom: 2rem; }
main section .row > [class*="col-"] { min-width: 0; }

/* 01. Hero: форма в первом экране */
.ct-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(90deg, var(--color-bg) 0 58%, transparent 58%),
    repeating-linear-gradient(135deg, var(--color-surface) 0 18px, var(--color-bg) 18px 19px);
  border-bottom: 1px solid var(--color-muted);
}
.ct-hero .ct-card { background: var(--color-surface); border-color: var(--color-muted); }
.ct-hero img { min-height: 22rem; }

/* 02. История: текст и фото */
#about img, #our-story img, #service-method img { min-height: 24rem; }

/* 03. Текст с выносками */
#topic-01 aside { display: grid; gap: .8rem; }
#topic-01 aside .ct-card { padding: 1.15rem 1.35rem; border-left: .35rem solid var(--color-accent); }
#topic-01 aside p { margin: .3rem 0 0; font-size: .95rem; }

/* 04. Текст 6/6 и фото */
#topic-02 img { min-height: 27rem; }

/* 05 и 16. Счётчики */
#topic-03 .ct-card, #social-proof .ct-card {
  height: 100%;
  padding: 1.35rem;
  background: transparent;
  border-width: 0 0 1px;
}
.ct-count {
  display: block;
  margin-bottom: .3rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}
#topic-03 .ct-card p, #social-proof .ct-card p { margin: 0; font-size: .95rem; }

/* 06 и 18. Аккордеоны */
.accordion { border-top: 1px solid var(--color-muted); }
.accordion-item { border: 0; border-bottom: 1px solid var(--color-muted); border-radius: 0 !important; background: transparent; }
.accordion-button { padding: 1.25rem 0; color: var(--color-text); background: transparent; font-family: var(--font-heading); font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--color-accent); background: transparent; }
.accordion-button::after { filter: sepia(1); }
.accordion-body { padding: 0 0 1.35rem; max-width: 74ch; }
#faq .accordion, #services-faq .accordion { max-width: 52rem; margin-inline: auto; }
#faq > .ct-container > .ct-btn { margin-top: 2rem; }

/* 07. Три карточки */
#topic-05 article .ct-card { display: flex; flex-direction: column; position: relative; padding-top: 3.6rem; }
#topic-05 article .ct-card::before { content: ''; position: absolute; top: 1.7rem; left: 1.75rem; width: 2.75rem; border-top: 3px solid var(--color-accent); }

/* 08. Шаги-таймлайн */
.ct-timeline { list-style: none; margin: 2.5rem 0; padding: 0 0 0 3.5rem; counter-reset: step; position: relative; }
.ct-timeline::before { content: ''; position: absolute; top: .5rem; bottom: .5rem; left: 1.1rem; border-left: 1px solid var(--color-muted); }
.ct-timeline li { position: relative; counter-increment: step; padding: 0 0 1.8rem 1rem; }
.ct-timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; left: -3.5rem; top: -.25rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--color-on-accent); background: var(--color-accent); font-weight: 700; }
.ct-timeline li:last-child { padding-bottom: 0; }

/* 09. Сравнительные таблицы */
.table-responsive { border: 1px solid var(--color-muted); margin: 2rem 0; }
.table { min-width: 42rem; margin: 0; color: var(--color-text); }
.table > :not(caption) > * > * { padding: 1rem; border-color: color-mix(in srgb, var(--color-muted) 35%, transparent); background: transparent; }
.table thead th { color: var(--color-on-accent); background: var(--color-accent); }
.table tbody th { font-family: var(--font-heading); background: var(--color-surface); }

/* 10. Бенто */
.ct-bento { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.ct-bento .ct-card { min-height: 10rem; }
.ct-bento__large { background: var(--color-accent); color: var(--color-on-accent); }

/* 11. Галерея */
#topic-09 figure { display: flex; flex-direction: column; margin: 0; }
#topic-09 figure img { aspect-ratio: 4 / 3; }
#topic-09 figcaption { flex: 1; padding: 1.1rem; border: 1px solid var(--color-muted); border-top: 0; background: var(--color-bg); }

/* 12. Фото слева, текст справа */
#topic-10 img { min-height: 28rem; }

/* 13. Четыре плитки */
#topic-11 .ct-card { position: relative; padding-left: 5rem; }
#topic-11 .ct-card > span { position: absolute; top: 1.75rem; left: 1.75rem; color: var(--color-accent); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }

/* 14. Цитата на акцентной заливке */
#topic-12 { color: var(--color-on-accent); background: var(--color-accent); }
#topic-12 .ct-section__eyebrow { color: var(--color-on-accent); }
#topic-12 blockquote { max-width: 54rem; margin: 2rem 0 2.5rem; padding-left: 1.75rem; border-left: 4px solid var(--color-on-accent); }
#topic-12 blockquote p { max-width: none; font: 700 clamp(1.55rem, 3vw, 2.4rem)/1.3 var(--font-heading); }
#topic-12 blockquote footer { font-weight: 700; }

/* 15. Крупный нумерованный список */
.ct-number-list { list-style: none; padding: 0; margin: 2rem 0; counter-reset: item; }
.ct-number-list li { counter-increment: item; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--color-muted); }
.ct-number-list li::before { content: counter(item, decimal-leading-zero); grid-row: 1 / 3; color: var(--color-accent); font: 700 1.55rem var(--font-heading); }
.ct-number-list h3, .ct-number-list p { grid-column: 2; }
.ct-number-list p { margin: 0; }

/* 17. Тарифы */
#services .row > article, #plans .row > article { display: flex; }
#services .ct-card, #plans .ct-card { display: flex; flex: 1; flex-direction: column; }
#services .ct-card ul, #plans .ct-card ul { padding-left: 1.2rem; margin-bottom: 1.8rem; }
#services .ct-card li, #plans .ct-card li { margin-bottom: .45rem; }
.ct-card--featured { position: relative; border: 2px solid var(--color-accent); background: var(--color-surface); }
.ct-badge { align-self: flex-start; margin: -3rem 0 1rem; padding: .35rem .7rem; color: var(--color-on-accent); background: var(--color-accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ct-price { color: var(--color-accent); font: 700 clamp(2rem, 5vw, 3.25rem)/1 var(--font-heading); }
.ct-price span { color: var(--color-muted); font: 400 .95rem var(--font-body); }

/* 19. Полноширинная форма */
.ct-contacts { color: var(--color-on-accent); background: var(--color-accent) !important; }
.ct-contacts .ct-section__eyebrow, .ct-contacts a { color: var(--color-on-accent); }
.ct-contacts .ct-card { max-width: 38rem; margin-inline: auto; color: var(--color-text); background: var(--color-bg); }
.ct-contacts iframe, #contact-details iframe { width: 100%; border: 1px solid var(--color-muted) !important; }

/* Внутренние страницы */
#principles .ct-card, #team .ct-card { height: 100%; }
#about-next, #services-next { text-align: center; }
#about-next p, #services-next p { margin-inline: auto; }
#working-rhythm .nav-tabs { gap: .35rem; border-bottom-color: var(--color-muted); }
#working-rhythm .nav-link { color: var(--color-text); border-radius: 0; }
#working-rhythm .nav-link.active { color: var(--color-on-accent); background: var(--color-accent); border-color: var(--color-accent); }
#working-rhythm .tab-content { padding: 1.75rem; border: 1px solid var(--color-muted); border-top: 0; background: var(--color-bg); }
#contact-details .ct-card, #contact-form .ct-card { height: 100%; }

/* 576 / 768 / 992: сетки на узком экране всегда в одну колонку */
@media (max-width: 575.98px) {
  section { padding: 3.5rem 0; }
  .ct-container { padding-inline: 1rem; }
  main section .row > [class*="col-"] { width: 100%; }
  #topic-03 .row > div, #social-proof .row > div { width: 100%; }
  .ct-btn { width: 100%; margin-bottom: .65rem; }
  .ct-number-list li { grid-template-columns: 2.4rem 1fr; column-gap: .8rem; }
  .ct-number-list h3, .ct-number-list p { grid-column: 2; }
}

@media (max-width: 767.98px) {
  #topic-03 .row > div, #social-proof .row > div { width: 100%; }
}

@media (min-width: 576px) {
  .ct-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #topic-03 .ct-card, #social-proof .ct-card { text-align: center; }
}

@media (min-width: 768px) {
  .ct-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(10rem, auto); }
  .ct-bento__large { grid-column: span 2; grid-row: span 2; }
  .ct-number-list { max-width: 55rem; }
  .ct-number-list li { grid-template-columns: 5rem minmax(12rem, .7fr) 1.3fr; align-items: start; }
  .ct-number-list li::before { grid-row: 1; font-size: 2rem; }
  .ct-number-list h3 { grid-column: 2; margin: 0; }
  .ct-number-list p { grid-column: 3; }
}

@media (min-width: 992px) {
  #services .ct-card--featured, #plans .ct-card--featured { transform: translateY(-.75rem); }
  #faq > .ct-container > h2, #faq > .ct-container > .ct-section__eyebrow,
  #services-faq > .ct-container > h2, #services-faq > .ct-container > .ct-section__eyebrow { text-align: center; }
  #faq > .ct-container > h2 + p, #services-faq > .ct-container > h2 + p { margin-inline: auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  #services .ct-card--featured, #plans .ct-card--featured { transform: none; }
}
