/* ============================================================
   ЗараникАренда — Main Site Stylesheet
   ============================================================ */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }
a { color: inherit; text-decoration: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-logo__icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #facc15, #f97316);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .375rem;
  box-shadow: 0 4px 12px rgba(249,115,22,.4);
  flex-shrink: 0;
}

.header-logo__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.header-logo__sub {
  font-size: .875rem;
  color: #6b7280;
}

.btn-callback-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(to right, #facc15, #f97316);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(249,115,22,.4);
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.btn-callback-header:hover { opacity: .9; transform: translateY(-1px); }
.btn-callback-header .iconify { flex-shrink: 0; }

/* Header right block: phone + button */
.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #374151;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.header-phone:hover { color: #ea580c; }
.header-phone .iconify { color: #f97316; flex-shrink: 0; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav__link {
  color: #4b5563;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: color .2s;
}
.header-nav__link:hover { color: #ea580c; }

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-phone__num { display: none; }
}

@media (max-width: 480px) {
  .btn-callback-header span { display: none; }
  .btn-callback-header { padding: .75rem; border-radius: .5rem; }
  .header-phone .iconify { width: 1.25rem; height: 1.25rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ea580c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero__blur1,
.hero__blur2 {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: .1;
  pointer-events: none;
  filter: blur(80px);
}
.hero__blur1 { width: 18rem; height: 18rem; top: 4rem; left: 2rem; }
.hero__blur2 { width: 24rem; height: 24rem; bottom: 4rem; right: 2rem; }

/* Top part */
.hero__top {
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    gap: 4rem;
  }
}

/* Left column */
.hero__text { flex: 1; text-align: center; }

@media (min-width: 1024px) { .hero__text { text-align: left; } }

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
  max-width: 36rem;
}

@media (min-width: 1024px) { .hero__desc { margin-left: 0; } }

.btn-hero {
  background: #fff;
  color: #ea580c;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
  border: none;
}
.btn-hero:hover { background: #fefce8; transform: scale(1.04); }

/* Right column — categories */
.hero__categories { flex-shrink: 0; width: 100%; }
@media (min-width: 1024px) { .hero__categories { width: auto; } }

.hero__cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 20rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .hero__cat-grid { margin: 0; } }

.hero__cat-item {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  transition: background .2s;
}
.hero__cat-item:hover { background: rgba(255,255,255,.25); }

.hero__cat-icon { font-size: 3rem; display: block; color: #fff; line-height: 1; }
.hero__cat-label { font-weight: 600; text-align: center; line-height: 1.2; font-size: .9375rem; }

/* Bottom — features */
.hero__bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  position: relative;
  z-index: 1;
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .hero__features { grid-template-columns: repeat(4, 1fr); }
}

.hero__feature {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: background .2s;
}
.hero__feature:hover { background: rgba(255,255,255,.2); }

.hero__feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.hero__feature-icon .iconify { color: #fff; }
.hero__feature-title { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.hero__feature-desc { font-size: .75rem; color: rgba(255,255,255,.85); }

/* ============================================================
   EQUIPMENT SECTION
   ============================================================ */
.equipment {
  padding: 5rem 0;
  background: #f9fafb;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .75rem;
}

.section-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.equipment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px)  { .equipment__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .equipment__grid { grid-template-columns: repeat(3, 1fr); } }

.eq-card {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden;
  border-top: 4px solid #facc15;
  transition: box-shadow .2s;
}
.eq-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.16); }

.eq-card__img {
  height: 14rem;
  overflow: hidden;
}
.eq-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.eq-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  color: #6b7280;
  background: #f3f4f6;
  line-height: 1.25;
}
.eq-card__img-placeholder svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  overflow: visible;
}
.eq-card:hover .eq-card__img img { transform: scale(1.08); }

.eq-card__body { padding: 1.25rem; }
.eq-card__name { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.eq-card__desc { color: #6b7280; font-size: .875rem; margin-bottom: .75rem; }
.eq-card__price { color: #ea580c; font-weight: 700; font-size: 1.125rem; }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  padding: 5rem 0;
  background: #fff;
}

/* Slider */
.slider-wrapper { position: relative; overflow: hidden; max-width: 100%; }

.slider-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

.slider-slide {
  flex-shrink: 0;
  padding: 0 .75rem;
}

.gallery-card {
  background: #f3f4f6;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.gallery-card__img {
  height: 18rem;
  overflow: hidden;
}
.gallery-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-card:hover .gallery-card__img img { transform: scale(1.05); }
.gallery-card__title { padding: 1rem; font-weight: 600; font-size: .9375rem; }

/* Slider arrows */
.slider-arrows {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.slider-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: #e5e7eb; }
.slider-arrow svg { width: 1.25rem; height: 1.25rem; }

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
}
.slider-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  transition: background .2s, transform .2s;
}
.slider-dot.active { background: #f97316; transform: scale(1.3); }

.gallery-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111827;
  color: #fff;
  padding: 3rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

.footer__brand { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.footer__about { color: #9ca3af; }

.footer__col h4 { font-weight: 600; margin-bottom: 1rem; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #d1d5db;
  margin-bottom: .75rem;
  text-decoration: none;
}
.footer__contact-item .iconify { color: #facc15; flex-shrink: 0; }

.footer__contact-link { transition: color .2s; }
.footer__contact-link:hover { color: #fff; }
.footer__contact-link:hover .iconify { color: #f97316; }

.footer__hours { color: #d1d5db; margin-bottom: .25rem; }
.footer__copy {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
}

/* ============================================================
   CALLBACK MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  box-shadow: 0 16px 64px rgba(0,0,0,.3);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(1rem) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: #374151; }
.modal-close svg { width: 1.5rem; height: 1.5rem; }

.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.modal-sub { color: #6b7280; font-size: .875rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .375rem; }
.form-group label span { font-weight: 400; color: #9ca3af; }

.form-input {
  width: 100%;
  padding: .625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.form-input.mono { font-family: 'Courier New', monospace; letter-spacing: .05em; }

.phone-hint { font-size: .75rem; color: #f97316; margin-top: .25rem; display: none; }

.btn-submit {
  width: 100%;
  background: linear-gradient(to right, #facc15, #f97316);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .875rem;
  border-radius: .5rem;
  border: none;
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
  transition: opacity .2s, transform .2s;
  margin-top: .5rem;
}
.btn-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Success state */
.modal-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.modal-success.show { display: block; }
.modal-form.hide { display: none; }

.modal-success__icon {
  width: 4rem;
  height: 4rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.modal-success__icon svg { width: 2rem; height: 2rem; color: #16a34a; }
.modal-success__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.modal-success__sub { color: #6b7280; }
