@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===============================
   ROOT VARIABLES
================================ */
:root {
  --red: #d84315;
  --dark: #2c2c2c;
  --light: #ffffff;
  --gray: #6b6b6b;
  --bg-warm: #fff8f2;
}

/* ===============================
   RESET & BASE
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

body {
  background: #fafafa;
  color: var(--dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

.center {
  text-align: center;
}

/* ===============================
   HEADER (UPDATED – LOVABLE STYLE)
================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-warm);
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-brand {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-brand .sun {
  color: #f4a000;
}

/* HEADER NAV – LOVABLE POLISH */

.header-nav {
  display: none;
  gap: 36px;
}

.header-nav a {
  white-space: nowrap;
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3a2f2a;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

/* underline animation */
.header-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7a18, #d84315);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.header-nav a:hover {
  color: #b84a1b;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 10px;
  padding-top: 10px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a18, #d84315);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(216, 67, 21, 0.35);
}

/* ===============================
   BUTTONS (GRADIENT – LOVABLE)
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.btn-fire {
  background: linear-gradient(135deg, #ff7a18 0%, #d84315 100%);
}

.btn-telegram {
  background: linear-gradient(135deg, #00a2ff 0%, #0077cc 100%);
}

.btn.full {
  width: 100%;
}

/* ===============================
   HERO (LOVABLE EXACT STYLE)
================================ */
.hero {
  min-height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 200, 150, 0.25), transparent 60%), #fff8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 16px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
}

.hero-logo-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 280px;
  height: auto;
}

.hero-logo-txt-wrap {
  position: relative;
  padding-top: 60px;
}

.hero-logo-txt {
  position: absolute;
  top: -60px;
  left: 100px;
  width: 280px;
  height: auto;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #b84a1b;
  margin-bottom: 12px;
}

.hero-title .sun {
  color: #f4a000;
}

.hero-subtitle {
  font-size: 24px;
  color: #6b5a52;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 16px;
  color: #7a6a62;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================
   ABOUT (LOVABLE STYLE)
================================ */
.about {
  background: #fbf7f2;
  padding: 100px 16px;
  text-align: center;
}

.about-inner {
  max-width: 1100px;
  margin: auto;
}

.about-title {
  font-size: 42px;
  font-weight: 700;
  color: #3a2f2a;
  margin-bottom: 24px;
}

.about-text {
  max-width: 760px;
  margin: 0 auto 64px;
  font-size: 16px;
  line-height: 1.7;
  color: #7a6a62;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f6ebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3a2f2a;
}

.about-card p {
  font-size: 14px;
  color: #8a7a72;
}

/* ===============================
   SERVICES (LOVABLE STYLE)
================================ */
.services {
  background: #fbf7f2;
  padding: 100px 16px;
  text-align: center;
}

.services-inner {
  max-width: 1200px;
  margin: auto;
}

.services-title {
  font-size: 42px;
  font-weight: 700;
  color: #3a2f2a;
  margin-bottom: 12px;
}

.services-subtitle {
  font-size: 16px;
  color: #7a6a62;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff;
}

.service-icon.fire {
  background: linear-gradient(135deg, #ff7a18, #d84315);
}

.service-icon.orange {
  background: linear-gradient(135deg, #ff9f1c, #f3722c);
}

.service-icon.red {
  background: linear-gradient(135deg, #c0392b, #8e2f23);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #3a2f2a;
}

.service-card ul {
  padding-left: 16px;
}

.service-card li {
  font-size: 14px;
  color: #7a6a62;
  margin-bottom: 8px;
}

.service-card li::marker {
  color: #c0392b;
}

/* ===============================
   MATERIALS (LOVABLE STYLE)
================================ */
.materials {
  background: #fbf7f2;
  padding: 100px 16px;
  text-align: center;
}

.materials-inner {
  max-width: 1100px;
  margin: auto;
}

.materials-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f3e4dc;
  color: #c0392b;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.materials-title {
  font-size: 42px;
  font-weight: 700;
  color: #3a2f2a;
  margin-bottom: 12px;
}

.materials-subtitle {
  font-size: 16px;
  color: #7a6a62;
  margin-bottom: 48px;
}

.materials-box {
  background: #fffaf6;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.materials-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
  text-align: left;
}

.materials-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #3a2f2a;
}

.materials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #c0392b;
  font-weight: 700;
}

/* ===============================
   GALLERY – CAROUSEL
================================ */
.gallery {
  padding: 80px 16px;
  background: #fbf7f2;
  text-align: center;
}

.gallery-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* CAROUSEL LAYOUT */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport {
  overflow: hidden;
  width: 100%;
}

.track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

/* FIXED IMAGE SIZE */
.track img {
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* BUTTONS */
.nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.nav.prev {
  left: -24px;
}
.nav.next {
  right: -24px;
}

/* ===============================
   CONTACTS
================================ */
.contacts {
  background: #fbf7f2;
  padding: 100px 16px;
}

.contacts-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.contacts-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contacts-subtitle {
  color: #7a6a62;
  margin-bottom: 48px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  border: 1px solid red;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-loc {
  width: 18px;
  height: 18px;
  display: flex;
}

.contact-label {
  font-size: 13px;
  color: #7a6a62;
}

.contact-value {
  font-size: 18px;
  font-weight: 600;
}

.socials {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 14px;
  font-weight: 500;
  text-decoration: none;
}

.social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* colors stay the same */
.tg {
  background: #eaf3fa;
}

.ig {
  background: #fcecef;
}

.yt {
  background: #fdecec;
}

.social {
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
  border-radius: 20px;
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: linear-gradient(180deg, #3a2a22, #2a1d18);
  color: #fff;
  padding: 40px 16px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-left img {
  width: 52px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
}

.footer-sub {
  font-size: 13px;
  opacity: 0.7;
}

.footer-phone {
  text-align: center;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ===============================
   MOBILE CTA
================================ */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: white;
  border-top: 1px solid #eee;
}

/* IMAGE MODAL */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.img-modal .close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}

/* Corner images */
.corner-img {
  width: 20px;
  height: 120dvh;
  pointer-events: none;
  z-index: 9999;
  position: fixed;
  background-repeat: repeat-y;
  background-size: contain;
  background-image: url('./assets/corner1.webp');
  background-position: center center;
  background-color: transparent;
}
.left-img {
  top: 0;
  left: 0;
}
.right-img {
  top: 0;
  right: 0;
}

.top-corner-img {
  top: -3px;
  left: 0;
  width: 100%;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  position: fixed;
  background-color: red;
  background-repeat: repeat-x;
  background-size: contain;
  background-image: url('./assets/corner2.webp');
  background-position: center center;
  background-color: transparent;
}

/* ===============================
   RESPONSIVE
================================ */
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .mobile-cta {
    display: none;
  }
}

/* ===============================
   RESPONSIVE (STACKING)
================================ */

@media (max-width: 768px) {
  .top-img {
    top: -58.5%;
  }
  .corner-img {
    width: 12px;
    opacity: 0.85;
  }
  .right-img {
    right: -2px;
  }

  .left-img {
    left: -2px;
  }

  .hero-logo-txt {
    left: 65px;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .materials-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-col .tall {
    height: auto;
  }
  .contacts-grid {
    overflow: hidden;
    grid-template-columns: 1fr;
  }
  .contact-card {
    width: 100%;
    overflow: hidden;
  }

  .contacts-map {
    align-items: center;
    width: 100%;
    overflow: hidden;
  }
  .socials {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-left {
    justify-content: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
    letter-spacing: 2px;
  }
  .hero-logo-wrap {
    width: 150px;
    height: 150px;
  }
  .hero-logo {
    width: 110px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-title {
    font-size: 32px;
  }
}

@media (max-width: 500px) {
  .materials-title {
    font-size: 32px;
  }
  .materials-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 32px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}
