/* Sustainable living and eco-friendly products — repair and reuse
   палитра: тёплая-песочная | стиль: брутальный | код: семантический
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #fdf9f3;
  --color-text: #2a2118;
  --color-muted: #6b5b48;
  --color-accent: #b4622a;
  --color-surface: #f5ece0;
  --color-on-accent: #ffffff;

  --font-heading: 'Montserrat', Georgia, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  --radius: 0;
  --shadow: 6px 6px 0 var(--color-text);
  --container: 66rem;
}

*, *::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.75rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
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; }

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

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

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

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

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

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

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

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

/* правовые страницы */
.legal-page { background: var(--color-bg); }
.legal-page-inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-page h2 { margin-top: 2.2rem; }
.legal-page h3 { margin-top: 1.4rem; }
.legal-page-updated { color: var(--color-muted); font-size: .9rem; }
.legal-page-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.legal-page-table th, .legal-page-table td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.legal-page-table th { width: 34%; font-weight: 600; }
.legal-page-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) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .cookie-notice-inner { flex-direction: column; align-items: stretch; }
  .cookie-notice-actions { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .site-header-burger { display: flex; }
  .site-header-cta { display: none; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open-active { display: block; }
  .main-nav-list { flex-direction: column; padding-block: .6rem; }
  .site-header-inner { flex-wrap: wrap; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer-bottom, .site-footer-row { flex-direction: column; }
  .cookie-notice-actions .button { flex: 1 1 auto; }
}

/* Секционные раскладки */
.eyebrow {
  margin-bottom: .6rem;
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-lead { max-width: 58rem; color: var(--color-muted); }
.button-group { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button-secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.button-secondary:hover { background: var(--color-accent); color: var(--color-on-accent); transform: translateY(-2px); }
.text-link { display: inline-block; font-weight: 700; text-underline-offset: .24em; }

.hero { min-height: 76vh; display: flex; align-items: center; }
.hero-copy { row-gap: 1.5rem; margin-bottom: 2rem; }
.hero-copy h1 { max-width: 11ch; }
.hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 2px solid var(--color-text);
  box-shadow: var(--shadow);
}

.intro .row, .material-guide .row, .quality-section .row,
.approach-section .row, .service-method .row { row-gap: 2rem; }
.intro img, .material-guide img, .approach-section img, .service-method img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 2px solid var(--color-text); box-shadow: var(--shadow);
}
.quality-section img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border: 2px solid var(--color-text); box-shadow: var(--shadow); }

.bento-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.bento-card, .feature-card, .guide-card, .profile-card {
  display: flex; flex-direction: column; padding: 1.75rem;
  border: 2px solid var(--color-text); box-shadow: var(--shadow);
  background: var(--color-bg);
}
.bento-card-large { background: var(--color-accent); color: var(--color-on-accent); }
.bento-card-large img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; border: 2px solid var(--color-text); }

.repair-swiper { margin-top: 2rem; padding: 0 .4rem 3.75rem; }
.repair-swiper .swiper-wrapper { align-items: stretch; }
.repair-swiper .swiper-slide { height: auto; }
.guide-card img { width: calc(100% + 3.5rem); max-width: none; aspect-ratio: 4 / 3; object-fit: cover; margin: -1.75rem -1.75rem 1.4rem; border-bottom: 2px solid var(--color-text); }
.repair-swiper .swiper-button-prev, .repair-swiper .swiper-button-next { color: var(--color-accent); }
.repair-swiper .swiper-pagination-bullet-active { background: var(--color-accent); }

.wide-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin: 2rem 0; border: 2px solid var(--color-text); box-shadow: var(--shadow); }
.wide-copy { display: grid; gap: 1.5rem; }
.wide-copy p { margin: 0; }

.metric-grid, .proof-grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
.metric-grid article, .proof-grid article { padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); }
.metric-grid .count-up, .proof-grid .count-up { display: block; color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; }
.proof-grid article { display: flex; flex-direction: column; justify-content: space-between; min-height: 11rem; }
.proof-grid span { max-width: 14rem; font-weight: 700; }

.two-column-copy { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.comparison-table { width: 100%; min-width: 42rem; border-collapse: collapse; margin: 1.75rem 0; background: var(--color-bg); border: 2px solid var(--color-text); }
.comparison-table th, .comparison-table td { padding: .9rem 1rem; text-align: left; border: 1px solid var(--color-text); vertical-align: top; }
.comparison-table thead th { background: var(--color-text); color: var(--color-bg); }
.comparison-table tbody th { color: var(--color-accent); }

.timeline { position: relative; max-width: 48rem; margin: 2rem 0; padding: 0; list-style: none; counter-reset: timeline; }
.timeline::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 1.35rem; width: 2px; background: var(--color-text); }
.timeline li { position: relative; padding: 0 0 1.75rem 4.5rem; counter-increment: timeline; }
.timeline li::before { content: counter(timeline); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: var(--color-on-accent); background: var(--color-accent); border: 2px solid var(--color-text); font-family: var(--font-heading); font-weight: 700; }
.timeline p { margin-bottom: 0; }

.card-grid { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.feature-card .text-link { margin-top: auto; }
.principles-section .feature-card:nth-child(even) { background: var(--color-text); color: var(--color-bg); }
.numbered-list { max-width: 54rem; margin: 2rem 0; padding: 0; list-style: none; counter-reset: numbered; }
.numbered-list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.25rem; padding: 1.5rem 0; border-top: 2px solid var(--color-text); counter-increment: numbered; }
.numbered-list li::before { content: counter(numbered, decimal-leading-zero); grid-row: 1 / span 2; color: var(--color-accent); font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.numbered-list p { margin: 0; }

.gallery-grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
.gallery-grid figure { margin: 0; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--color-text); }
.gallery-grid figcaption { padding: 1.25rem; }

.offer-grid { display: grid; gap: 1.25rem; margin: 2rem 0 1.5rem; align-items: stretch; }
.offer-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.offer-card-featured { border-color: var(--color-accent); border-width: 4px; }
.offer-card ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.offer-card .button { width: 100%; margin-top: auto; }
.offer-badge { align-self: flex-start; padding: .3rem .65rem; margin: -3.15rem 0 1rem; color: var(--color-on-accent); background: var(--color-accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price strong { display: block; font-family: var(--font-heading); font-size: 2.5rem; line-height: 1.1; }
.price span, .price-note { color: var(--color-muted); }

.accordion { margin: 2rem 0; border: 2px solid var(--color-text); }
.accordion-item { border: 0; border-bottom: 2px solid var(--color-text); border-radius: 0 !important; background: var(--color-bg); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-button { color: var(--color-text); background: var(--color-bg); font-family: var(--font-heading); font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); }
.accordion-body { padding: 1.25rem; }

.contact-layout { display: grid; gap: 1.5rem; align-items: start; }
.contact-details, .lead-form { padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.contact-details iframe { display: block; margin-top: 1.5rem; border: 2px solid var(--color-text) !important; }
.lead-form { display: flex; flex-direction: column; }
.lead-form label { display: block; margin-bottom: .35rem; font-weight: 600; }
.lead-form input, .lead-form textarea { width: 100%; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--color-muted); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit; }
.lead-form .checkbox-label { display: flex; gap: .6rem; align-items: flex-start; }
.lead-form .checkbox-label input { width: auto; margin-top: .3rem; }

.page-hero { min-height: 76vh; display: flex; align-items: center; }
.page-hero .row { row-gap: 2rem; }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--color-text); box-shadow: var(--shadow); }
.profile-card img { width: calc(100% + 3.5rem); max-width: none; aspect-ratio: 1; object-fit: cover; margin: -1.75rem -1.75rem 1.4rem; border-bottom: 2px solid var(--color-text); }
.about-cta, .contact-next { text-align: center; }
.about-cta p, .contact-next p { margin-inline: auto; }
.about-cta .button-group, .contact-next .button-group { justify-content: center; }

@media (min-width: 576px) {
  .metric-grid, .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card-large { grid-row: span 2; }
  .two-column-copy, .wide-copy, .contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(10rem, auto); }
  .bento-card-large { grid-column: span 2; grid-row: span 2; }
  .metric-grid, .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid-three, .team-section .card-grid, .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles-section .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .principles-section .feature-card { grid-column: span 2; }
  .principles-section .feature-card:nth-last-child(-n + 2) { grid-column: span 3; }
  .offer-card-featured { transform: translateY(-.65rem); }
}

@media (max-width: 575px) {
  .button-group, .button-group .button { width: 100%; }
  .offer-badge { margin-top: -3rem; }
  .numbered-list li { grid-template-columns: 2.75rem 1fr; gap: 0 .75rem; }
  .contact-details, .lead-form, .offer-card, .feature-card, .bento-card, .guide-card, .profile-card { padding: 1.25rem; }
  .guide-card img, .profile-card img { width: calc(100% + 2.5rem); margin: -1.25rem -1.25rem 1.2rem; }
}
