* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0d2b2e;
  --brand: #0b7a7c;
  --brand-dark: #095f61;
  --accent: #ffa94d;
  --paper: #f2f7f6;
  --white: #ffffff;
  --line: #dbe7e5;
  --muted: #546a6b;

  --font-head: "Unbounded", "Montserrat", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }

section { padding: 88px 0; }

h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 48px;
}

h2 + .section-lead { margin-top: -28px; }

.section-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ffbd73; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-dark); }

/* Ценник */
.tag {
  position: relative;
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 12px 8px 24px;
  border-radius: 4px 10px 10px 4px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.tag::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--white);
}
.tag-plain { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }

/* Шапка */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.logo img { display: block; }

nav { display: flex; gap: 2px; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover { background: var(--paper); color: var(--brand); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* Главный экран */
.hero-slider {
  position: relative;
  height: 620px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}
.slider { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(13, 43, 46, 0.92) 0%, rgba(13, 43, 46, 0.65) 55%, rgba(13, 43, 46, 0.3) 100%);
  color: var(--white);
}

.hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { max-width: 640px; }
.hero-text h1 {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 19px;
  color: #e3f1f0;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.price-sticker {
  flex-shrink: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 8px rgba(255, 169, 77, 0.35);
}
.price-sticker strong { font-family: var(--font-head); font-size: 44px; line-height: 1.1; }
.price-sticker span { font-weight: 800; font-size: 15px; }

/* Полоса цен */
.price-strip { background: var(--brand); padding: 30px 0; color: var(--white); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.strip-item { display: flex; align-items: center; gap: 16px; }
.strip-item strong {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--accent);
  white-space: nowrap;
}
.strip-item span { font-size: 15px; line-height: 1.35; color: #d4ebea; }

/* Карточки */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.card .tag { margin-top: auto; }
.card-hot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card-hot .card-icon { background: var(--accent); }
.card-hot p { color: #b9d3d2; margin-bottom: 0; }

.services { background: var(--paper); }

/* Как заказать */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--brand); }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
}
.steps h3 { font-family: var(--font-head); font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Работы */
.works-section { background: var(--paper); }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.work img { width: 100%; height: 240px; object-fit: cover; display: block; background: var(--line); }
.work p { padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* О компании */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-carousel { position: relative; }
.about-track {
  position: relative;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--line);
}
.about-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.about-slide.active { opacity: 1; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(13, 43, 46, 0.2);
}
.about-btn:hover { background: var(--accent); }
.about-btn.prev { left: 12px; }
.about-btn.next { right: 12px; }

.about-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.about-dots .dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; }
.about-dots .dot.active { background: var(--brand); transform: scale(1.25); }

.about-text h3 { font-family: var(--font-head); font-size: 22px; line-height: 1.3; margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: var(--muted); max-width: 62ch; }

/* Преимущества */
.advantages { background: var(--paper); }

/* Цены */
.pricing { background: var(--white); }
.table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--ink); color: var(--white); font-size: 15px; font-weight: 700; }
.price-table td { font-size: 15px; vertical-align: middle; }
.price-table td:first-child { font-weight: 800; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tr.hot td { background: #fff4e5; }
.price-table small { color: var(--muted); font-weight: 600; margin-right: 8px; }
.price-table td:last-child { display: table-cell; }

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--brand);
  color: var(--white);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.price-note { max-width: 700px; margin: 22px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Отзывы */
.reviews { background: var(--paper); }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.stars { color: #f08c00; font-size: 20px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { flex: 1; margin-bottom: 20px; }
.review-author strong { display: block; font-size: 16px; }
.review-author span { font-size: 14px; color: var(--muted); }

/* Вопросы */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); flex-shrink: 0; }
.faq details[open] { border-color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }

/* Свой дизайн */
.design-cta { padding: 0 0 88px; }
.design-card {
  text-align: center;
  padding: 64px 32px;
  border-radius: 24px;
  background: var(--brand);
  color: var(--white);
}
.design-card h2 { margin-bottom: 14px; }
.design-card p { max-width: 560px; margin: 0 auto 30px; font-size: 18px; color: #d4ebea; }
.design-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Контакты */
.contact { background: var(--paper); }
.contact-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: var(--brand); }
.contact-icon { font-size: 26px; }
.contact-item strong { display: block; font-size: 14px; color: var(--muted); }
.contact-item p { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }

/* Футер */
footer { padding: 36px 0; background: var(--ink); color: #b9d3d2; text-align: center; }
.footer-contacts { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-contacts a { color: var(--accent); text-decoration: none; font-weight: 700; }
.footer-contacts a:hover { text-decoration: underline; }
.copyright { font-size: 14px; }

/* Форма заявки */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 46, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal.open { display: flex; }
.modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 34px 28px;
}
.modal-content h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 8px; }
.modal-content > p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover { background: var(--accent); }

#orderForm label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
#orderForm input, #orderForm select, #orderForm textarea {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
#orderForm input:focus, #orderForm select:focus, #orderForm textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 122, 124, 0.18);
}
#orderForm textarea { resize: vertical; }
.submit-btn { width: 100%; }
.form-status { display: none; margin-top: 14px; font-size: 14px; text-align: center; }
.form-status.success { display: block; color: #1f7a4d; }
.form-status.error { display: block; color: #b3351f; }

/* Адаптивность */
@media (max-width: 1100px) {
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  nav a { padding: 8px 8px; font-size: 14px; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 8px; font-size: 16px; }

  .price-sticker { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-track { height: 320px; }
  .review-list { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  h2 { font-size: 25px; margin-bottom: 32px; }
  .hero-slider { height: 540px; }
  .hero-text h1 { font-size: 30px; }
  .hero-text p { font-size: 17px; }
  .cards-4, .steps, .works, .contact-info { grid-template-columns: 1fr; }
  .design-card { padding: 44px 22px; }
  .footer-contacts { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .about-slide { transition: none; }
}

/* Кнопка контактов в шапке */
.header-actions { display: flex; align-items: center; gap: 10px; }
.contact-dropdown { position: relative; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.contact-btn:hover { background: #ffbd73; }
.contact-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 290px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(13, 43, 46, 0.16);
}
.contact-dropdown.open .contact-menu { display: block; }
.contact-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-menu a:hover { background: var(--paper); }

/* Фото в отзывах */
.review-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

@media (max-width: 480px) {
  .contact-btn-text { display: none; }
  .logo span { font-size: 18px; }
}

/* Чередование фонов секций */
.how, .about, .pricing { background: var(--paper); }
.works-section, .advantages { background: var(--white); }
.table-wrapper { background: var(--white); }

/* Чипы в главном экране */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-chips li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #e9f5f4;
}

/* Что печатаем */
.print-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }
.print-item {
  flex: 0 0 calc(25% - 12px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 14px;
  font-weight: 800;
}
.print-item span { font-size: 26px; }
.for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.for-item { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; }
.for-item h3 { font-family: var(--font-head); font-size: 16px; margin-bottom: 8px; }
.for-item p { color: var(--muted); font-size: 15px; }

/* Калькулятор */
.calc { background: var(--white); }
.calc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.calc-fields { padding: 36px; }
.calc-fields label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.calc-fields select, .calc-fields input[type="number"] {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
.calc-fields .calc-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.calc-fields .calc-check[hidden] { display: none; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.calc-result { padding: 36px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; gap: 6px; }
.calc-caption { font-size: 14px; color: #b9d3d2; }
.calc-result strong { font-family: var(--font-head); font-size: 40px; color: var(--accent); line-height: 1.15; }
#calcUnit { font-weight: 700; }
#calcNote { font-size: 14px; color: #b9d3d2; margin: 8px 0 18px; }
.calc-result .btn { align-self: flex-start; }

/* Кнопки мессенджеров */
.float-chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(13, 43, 46, 0.25);
}
.float-tg { background: #2aabee; }
.float-wa { background: #25d366; }

@media (max-width: 1100px) {
  .print-item { flex-basis: calc(50% - 8px); }
  .for-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .calc-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .for-grid { grid-template-columns: 1fr; }
  .print-item { flex-basis: 100%; }
  .calc-fields, .calc-result { padding: 24px; }
  .float-btn { width: 48px; height: 48px; }
}
