/* style.css — чистая версия без мусора */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #2d2e2e 0%, #000000 100%);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
  color: #fff;
}

.page {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hat {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadein 0.6s ease both;
}

.hat-bg {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 50% 50% / 0 0 36px 36px;
}

.hat-logo-wrap {
  margin-top: -100px;
  position: relative;
  z-index: 10;
  display: block;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.18s;
}
.hat-logo-wrap:hover { transform: scale(1.03); }
.hat-logo-wrap:active { transform: scale(0.97); }

.hat-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2d2e2e;
  display: block;
}

.hat-title {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.hat-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  width: 160px;
}

.hat-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.hat-subtitle {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== Единый стиль для всех заголовков секций ===== */
.section-title {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 8px 4px;
  text-align: left;
  width: 100%;
  padding: 0 16px;
}

.about-block,
.spec-block,
.blocks,
.calc-block,
.carousel-wrap {
  width: 100%;
  padding: 20px 16px 0;
  animation: fadein 0.6s ease both;
}
.about-block { animation-delay: 0.2s; }
.stats-block { animation-delay: 0.25s; }
.spec-block { animation-delay: 0.3s; }
.blocks { animation-delay: 0.35s; }
.calc-block { animation-delay: 0.4s; }
.carousel-wrap { animation-delay: 0.5s; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.about-card {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.about-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.about-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.about-text {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}

.blocks {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messengers-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.messenger-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.messenger-btn:hover  { transform: translateY(-2px); }
.messenger-btn:active { transform: translateY(0); }

.messenger-btn-wa {
  background: rgba(37,211,102,0.18);
  border: 1px solid rgba(37,211,102,0.25);
}
.messenger-btn-wa:hover { background: rgba(37,211,102,0.28); }

.messenger-btn-tg {
  background: rgba(41,182,246,0.15);
  border: 1px solid rgba(41,182,246,0.2);
}
.messenger-btn-tg:hover { background: rgba(41,182,246,0.24); }

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.link-btn:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.link-btn:active { transform: translateY(0px); }

.link-icon-wrap {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(52,199,89,0.18);
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  min-height: 58px;
  border: 1px solid rgba(52,199,89,0.25);
}
.call-btn:hover { background: rgba(52,199,89,0.28); transform: translateY(-3px); }
.call-btn:active { transform: translateY(0px); }

.call-icon-wrap {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(52,199,89,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-wrap {
  padding: 32px 0 0;
}

.carousel-title {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  padding: 0 16px;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide {
  min-width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 911 / 1280;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s;
  line-height: 1;
  padding-bottom: 1px;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }
.carousel-arrow:active { transform: scale(0.95); }
.carousel-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot:focus-visible {
  outline: 1px solid #fff;
}

.carousel-dot.active {
  background: rgba(255,255,255,0.75);
  transform: scale(1.3);
}

.stats-block {
  width: 100%;
  padding: 20px 16px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  animation: fadein 0.6s ease 0.25s both;
}

.stat-item {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.stat-number {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.stat-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
}

.stat-sub {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.spec-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
}

a.spec-tag {
  cursor: pointer;
}
a.spec-tag:hover {
  background: rgba(255,255,255,0.13);
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.15);
}
a.spec-tag:hover .spec-tag-arrow {
  color: rgba(255,255,255,0.7);
}
a.spec-tag:active {
  transform: translateX(2px);
}

.spec-tag-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.spec-tag-icon {
  font-size: 20px;
  line-height: 1;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.spec-tag-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.spec-tag-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-tag-sub {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-tag-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-left: 8px;
}

.spec-tag-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(52,199,89,0.2);
  border: 1px solid rgba(52,199,89,0.35);
  color: #4ade80;
  flex-shrink: 0;
  white-space: nowrap;
}

.calc-block {
  padding: 28px 16px 0;
}

.calc-card {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-row {
  display: flex;
  gap: 10px;
}

.calc-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

.calc-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  outline: none;
  width: 100%;
  transition: border-color 0.18s;
  -webkit-appearance: none;
}
.calc-input:focus { border-color: rgba(255,255,255,0.3); }
.calc-input::placeholder { color: rgba(255,255,255,0.2); }

.calc-result {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.calc-result-label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}

.calc-result-value {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.calc-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0.0); }
  50%       { box-shadow: 0 0 0 6px rgba(52,199,89,0.12); }
}

.calc-cta {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}

.calc-cta-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.55;
}

.calc-cta-text strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.calc-cta-row {
  display: flex;
  gap: 8px;
}

.calc-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s, background 0.18s;
  cursor: pointer;
  border: 1px solid transparent;
}
.calc-cta-btn:hover  { transform: translateY(-2px); }
.calc-cta-btn:active { transform: translateY(0); }

.calc-cta-wa {
  background: rgba(37,211,102,0.18);
  border: 1px solid rgba(37,211,102,0.25);
  animation: cta-pulse 2.8s ease-in-out infinite;
}
.calc-cta-wa:hover { background: rgba(37,211,102,0.28); }

.calc-cta-tg {
  background: rgba(41,182,246,0.15);
  border: 1px solid rgba(41,182,246,0.2);
}
.calc-cta-tg:hover { background: rgba(41,182,246,0.24); }

.calc-cta-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  text-align: center;
  margin-top: -2px;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.18s;
  z-index: 99;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { background: rgba(255,255,255,0.18); }
.scroll-top:active { transform: scale(0.92); }
.scroll-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer {
  margin-top: 44px;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
  animation: fadein 0.6s ease 0.6s both;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px 20px;
}
.footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.18s;
}
.footer a:hover {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.reviews-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 4px;
  padding: 13px 16px;
  background: rgba(212,175,106,0.08);
  border: 1px solid rgba(212,175,106,0.2);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.reviews-link:hover {
  background: rgba(212,175,106,0.14);
}
.reviews-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-stars {
  display: flex;
  gap: 2px;
  font-size: 13px;
  color: #d4af6a;
}
.reviews-title {
  font-size: 14px;
  font-weight: 500;
}
.reviews-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}