/* ==============================
   Variables
   ============================== */
:root {
  --orange-500: #D54F30;
  --orange-600: #C44328;
  --orange-100: #FBF0EC;

  --slate-900: #1A2D3D;
  --slate-700: #334155;
  --slate-500: #64748B;

  --warm-50: #F8F5F3;
  --white: #FFFFFF;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--warm-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}

.btn--primary:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--slate-900);
}

/* ==============================
   Section Header
   ============================== */
.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.section-header p {
  color: var(--slate-500);
  font-size: 14px;
  max-width: 600px;
}

/* ==============================
   Header
   ============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--slate-900);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.header__logo-desc {
  font-size: 10px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.header__nav-list {
  display: flex;
  gap: 24px;
}

.header__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  padding: 8px 0;
}

.header__nav-list a:hover {
  color: var(--white);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
}

.header__burger span,
.header__burger span::before,
.header__burger span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 2px;
  transition: transform .3s, opacity .3s;
}

.header__burger span {
  top: 13px;
}

.header__burger span::before {
  content: '';
  top: -8px;
}

.header__burger span::after {
  content: '';
  top: 8px;
}

.header__burger.active span {
  background: transparent;
}

.header__burger.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.header__burger.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==============================
   Hero
   ============================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,45,61,.85) 0%, rgba(26,45,61,.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__title {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==============================
   Services
   ============================== */
.services {
  padding: 40px 0;
  background: var(--white);
}

.services__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.services__cat-btn {
  padding: 12px 20px;
  border: 2px solid var(--orange-100);
  background: var(--white);
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.services__cat-btn:hover {
  border-color: var(--orange-500);
  color: var(--orange-500);
}

.services__cat-btn.active {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}

.services__grid {
  display: grid;
  gap: 12px;
}

.services__card {
  background: var(--white);
  border: 1px solid #E2E0DD;
  border-radius: 10px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
}

.services__card:hover {
  box-shadow: 0 4px 16px rgba(213,79,48,.12);
}

.services__card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  flex: 1;
}

.services__card-volume {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.services__card-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-500);
}

.services__card-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-500);
  font-family: var(--font-body);
}

.services__cta {
  margin-top: 24px;
}

/* ==============================
   About
   ============================== */
.about {
  padding: 40px 0;
  background: var(--warm-50);
}

.about__grid {
  display: grid;
  gap: 20px;
}

.about__card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.about__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: var(--orange-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
}

.about__card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.about__card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ==============================
   Delivery
   ============================== */
.delivery {
  padding: 40px 0;
  background: var(--warm-50);
}

.delivery__inner {
  display: grid;
  gap: 32px;
}

.delivery__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 20px 0;
}

.delivery__list li {
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--slate-700);
}

.delivery__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--orange-500);
  border-radius: 50%;
}

.delivery__note {
  font-size: 14px;
  color: var(--slate-500);
  font-style: italic;
}

.delivery__map iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
}

/* ==============================
   Contact
   ============================== */
.contact {
  padding: 40px 0;
  background: var(--white);
}

.contact__grid {
  display: grid;
  gap: 16px;
}

.contact__card {
  background: var(--warm-50);
  border-radius: 10px;
  padding: 24px;
}

.contact__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  background: var(--orange-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-500);
}

.contact__card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact__link {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
  transition: color .2s;
}

.contact__link:hover {
  color: var(--orange-500);
}

.contact__text {
  font-size: 15px;
  color: var(--slate-700);
  margin-bottom: 4px;
}

.contact__meta {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 6px;
}

/* ==============================
   Footer
   ============================== */
.footer {
  background: var(--slate-900);
  padding: 40px 0 20px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.footer__desc {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 6px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: opacity .2s;
}

.footer__social-link:hover {
  opacity: .8;
}

.footer__social-link--max { background: #7B2FBE; }
.footer__social-link--tg { background: #0088CC; }
.footer__social-link--vk { background: #0077FF; }
.footer__social-link--email { background: var(--orange-500); }

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: var(--slate-500);
}

/* ==============================
   Scroll Top
   ============================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 150;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-900);
  color: var(--white);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================
   Responsive — Tablet (640+)
   ============================== */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .delivery__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .scroll-top {
    right: 24px;
  }
}

/* ==============================
   Responsive — Desktop (768+)
   ============================== */
@media (min-width: 768px) {
  .section-header h2 {
    font-size: 30px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero {
    min-height: 65vh;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .services {
    padding: 60px 0;
  }

  .services__categories {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 12px;
  }

  .services__cat-btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    padding: 60px 0;
  }

  .delivery {
    padding: 60px 0;
  }

  .delivery__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .delivery__map iframe {
    height: 400px;
  }

  .contact {
    padding: 60px 0;
  }

  .footer {
    padding: 48px 0 24px;
  }
}

/* ==============================
   Responsive — Large (1024+)
   ============================== */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 56px;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==============================
   Mobile Nav (below 640)
   ============================== */
@media (max-width: 639px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--slate-900);
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }

  .header__nav.open {
    max-height: 320px;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
  }

  .header__nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 15px;
  }

  .hero {
    min-height: 75vh;
  }


}
