/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  --orange:    #c0785a;
  --orange-dk: #a35f43;
  --bg:        #f7f2ef;
  --bg-light:  #faf7f5;
  --text:      #2c2c2c;
  --text-muted:#6b6b6b;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

h3 { font-size: 20px; margin-bottom: 8px; }

p { color: var(--text-muted); margin-bottom: 12px; }

a { text-decoration: none; color: inherit; }

img { display: block; width: 100%; height: auto; }

ul { list-style: none; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dk); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--outline:hover { background: var(--white); color: var(--orange); }

.btn--outline-dark { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn--outline-dark:hover { background: var(--orange); color: var(--white); }

.btn--wide { width: 100%; text-align: center; margin-top: 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}

.header__main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* логотип-картинка */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover { color: var(--orange); }

/* контакты в шапке */
.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__phone {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.header__phone:hover { color: var(--orange); }

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s, box-shadow 0.2s;
}
.header__icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.header__icon--phone { color: #1a1a1a; }   /* телефон — чёрный */
.header__icon--tg     { color: #29a9eb; }   /* телеграм — голубой */

.header__cta { flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 80px 24px;
}

.hero__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 20px;
  color: var(--text);
}

.hero__text h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero__text p {
  font-size: 18px;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 32px;
}
.hero__checks span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: 64px 0;
  background: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: box-shadow 0.2s;
}
.benefit:hover { box-shadow: var(--shadow); }

.benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}
.benefit__icon svg { width: 100%; height: 100%; }

.benefit h3 { color: var(--text); margin-bottom: 8px; }

.benefit__toggle { display: none; }

/* ============================================================
   SHAPES
   ============================================================ */
.shapes {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.shapes h2 { margin-bottom: 48px; }

.shapes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 32px;
}

.shape-card {
  background: #e8cfc4;
  border-radius: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shape-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.shape-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: #a35f43;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* картинка-обложка: занимает почти всю карточку */
.shape-card__visual {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 4px;
  border-radius: 22px;
}
.shape-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* фото заполняет всю зону */
  object-position: center;
  border-radius: 14px;
  background: none;
}

/* тело карточки — компактное, второстепенное */
.shape-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 24px 0;
}

.shape-card__body h3 {
  font-size: 24px;
  color: var(--text);
  margin: 0;
}

.shape-card__price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.shape-card__price .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 14px;
}
.shape-card__price .new {
  color: var(--orange);
  font-weight: 800;
  font-size: 17px;
}

.shape-card__body .btn {
  margin-top: 10px;
  width: 100%;
  max-width: 260px;
  text-align: center;
  background: #a35f43;
  color: var(--white);
  border: none;
}
.shape-card__body .btn:hover { background: #c0785a; }

/* ============================================================
   MOVEYOU (текст-акцент)
   ============================================================ */
.moveyou {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.moveyou__inner {
  max-width: 720px;
}

.moveyou h2 em {
  font-style: italic;
  color: var(--orange);
}

.moveyou__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; }

/* ============================================================
   IDEAS / SLIDER
   ============================================================ */
.ideas {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.ideas__slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;          /* разрешаем горизонтальный свайп ловить JS */
}

.ideas__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.ideas__slide {
  flex: 0 0 100%;
  width: 100%;
}

.ideas__slide picture { display: block; width: 100%; }

.ideas__slide img {
  width: 100%;
  height: 700px;                /* высота на десктопе */
  object-fit: cover;
  display: block;
}

/* стрелки — только десктоп */
.ideas__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ideas__arrow:hover {
  background: var(--orange);
  color: var(--white);
}
.ideas__arrow--prev { left: 18px; }
.ideas__arrow--next { right: 18px; }

.ideas__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--orange); }

.ideas__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}


/* ============================================================
   HOWTO
   ============================================================ */
.howto {
  padding: 80px 0;
  background: var(--white);
}

.howto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.howto__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
}

.howto__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.step.active .step__num {
  background: var(--orange);
  color: var(--white);
}

.step__text h3 { color: var(--text); }

/* ============================================================
   REAL SIZE
   ============================================================ 
.realsize {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.realsize h2 { margin-bottom: 40px; }

.realsize__scene {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.realsize__bg {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.realsize__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}

.size-prev, .size-next {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.size-prev:hover, .size-next:hover { color: var(--orange); }

.size-label {
  text-align: center;
}
#sizeName {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.size-price {
  font-size: 14px;
  color: var(--text-muted);
}
.size-price s { margin-right: 4px; }
.size-price strong { color: var(--orange); }

*/

/* ============================================================
   MATERIALS
   ============================================================ */
.materials {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.materials h2 { margin-bottom: 48px; }

.materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.mat-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mat-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

/* картинка-обложка во всю ширину */
.mat-card__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mat-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: none;
  padding: 0;
}

/* тело карточки */
.mat-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
  flex: 1;
}

.mat-card__body h3 {
  font-size: 22px;
  color: var(--text);
  margin: 0;
}

.mat-card__body p {
  margin: 0;
  font-size: 15px;
}

.mat-card__body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mat-card__body ul li {
  font-size: 14px;
  color: var(--text-muted);
}

.mat-card__body .btn {
  margin-top: auto;
  text-align: center;
}

/* ============================================================
   CUSTOM
   ============================================================ */
.custom {
  padding: 80px 0;
  background: var(--bg);
}

.custom__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.custom__text h2 { margin-bottom: 20px; }

.custom__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.reviews h2 { margin-bottom: 48px; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.review-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.review-card:hover { transform: translateY(-4px); }

.review-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.review-card__text {
  padding: 20px 24px;
}

.review-card__text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.review-card__text strong {
  font-size: 14px;
  color: var(--text);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 80px 0;
  background: var(--bg);
}

.faq h2 {
  text-align: center;
  margin-bottom: 48px;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Nunito', sans-serif;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--orange); }

.faq__q span {
  font-size: 22px;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.3s;
}

.faq__item.open .faq__q span { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  padding: 0 24px;
}

.faq__item.open .faq__a {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq__a p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1e1e1e;
  color: #aaa;
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand .logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
  /* filter: brightness(0) invert(1); */
}
.footer__brand p { font-size: 14px; color: #888; }

.footer__nav h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__nav a {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--orange); }

.footer__legal {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding: 20px 24px;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
}

.footer__bottom a {
  color: #555;
  transition: color 0.2s;
}
.footer__bottom a:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* планшет / узкий десктоп */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .nav { gap: 20px; }
  .header__main { gap: 18px; }
}

/* планшет */
@media (max-width: 900px) {
  .hero__inner,
  .howto__inner,
  .custom__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual { order: -1; }

  .benefits__grid,
  .shapes__grid,
  .materials__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner { grid-template-columns: 1fr 1fr; }

  .header__top-bar { gap: 8px 18px; font-size: 12px; }

  .nav { display: none; }
  .header__cta { display: none; }
  .header__main { justify-content: space-between; }
}

/* мобилка */
@media (max-width: 600px) {
  body { font-size: 15px; }

  .hero { padding: 48px 0; }
  .hero__inner { padding: 0 20px; }
  .hero__text h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero__text p { font-size: 16px; }

  .benefits { padding: 48px 0; }
  .benefits__grid,
  .shapes__grid,
  .materials__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shapes, .ideas, .howto, .realsize,
  .materials, .custom, .reviews, .faq { padding: 56px 0; }

  .shapes h2, .materials h2, .reviews h2,
  .realsize h2, .faq h2 { margin-bottom: 32px; }

  .shape-card { padding: 0 0 26px; }
  .shape-card__body { padding: 18px 18px 0; }
  .shape-card__visual {
    aspect-ratio: 3 / 4;
    padding: 16px 16px 4px;
  }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer__brand .logo { justify-content: center; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }

    .realsize__bg { height: 320px; }
  .ideas__slide img { height: 380px; }   /* высота на мобилке */
  .ideas__arrow { display: none; }        /* стрелки скрыты на мобилке */

  .header__top-bar { gap: 6px 14px; font-size: 11px; padding: 8px 16px; }
  .header__main { padding: 12px 20px; gap: 14px; }
  .logo-img { height: 32px; }

    .header__phone { display: none; }
  .header__contacts {
    gap: 10px;
    margin-left: auto;     /* прижимаем блок к правому краю */
    margin-right: 12px;    /* отступ от бургера */
  }
  .header__icon { width: 36px; height: 36px; }
  .header__icon svg { width: 18px; height: 18px; }

  .realsize__controls {
    flex-direction: row;
    padding: 10px 16px;
    gap: 12px;
    bottom: 16px;
    width: max-content;
    max-width: 92%;
  }
}

/* очень узкие экраны */
@media (max-width: 380px) {
  .hero__text h1 { font-size: 30px; }
  .btn { padding: 13px 22px; font-size: 14px; }
}