html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
  --primary: #454728;
  --accent: #9C9E30;
  --bg: #F9F9F7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  margin: 0;
  line-height: 1.6;
  background-color: var(--white);
}

.section {
  padding: 80px 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1.2;
  min-width: 300px;
}

.hero-image {
  flex: 0.8;
  min-width: 300px;
  text-align: right;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
}

h1 span {
  font-style: italic;
  font-weight: 400;
}


/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: #fff;
  padding: 40px;
  border-radius: 40px;
  border: 1px solid rgba(69,71,40,.08);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,.03);
}

.step-num {
  background: var(--accent);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Methods */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.method-card {
  background: #fff;
  padding: 40px;
  border-radius: 40px;
  border: 1px solid rgba(69,71,40,.08);
  transition: transform .3s ease;
}

.method-card:last-child:nth-child(odd) {
  grid-column: span 2;
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 50px; /* відстань під секцією дописів */
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(69,71,40,.08);
  border-radius: 25px;
  overflow: hidden;
  transition: transform .3s ease;
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  color: #666;
  transition: max-height .4s cubic-bezier(0,1,0,1), padding .3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 25px;
}

/* Buttons */
.btn,
.btn-price {
  display: inline-block;
  background: var(--accent);
  color: #ffffff !important; /* Фіксуємо білий колір */
  text-decoration: none !important;
  font-weight: 700;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
  border: none;
  text-align: center;
}

.btn {
  padding: 16px 30px;
  border-radius: 18px;
}

.btn-price {
  padding: 18px;
  border-radius: 20px;
}

.btn:hover,
.btn-price:hover {
  transform: translateY(-2px);
  opacity: 1; /* Прибираємо прозорість, щоб колір був насиченим */
  background-color: var(--primary); /* Змінюємо колір на темніший при наведенні */
  color: #ffffff !important; /* ГАРАНТОВАНО залишаємо текст білим */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.city-related-posts {
  margin-bottom: 50px; /* відстань між дописами та наступною секцією */
}


/* Media */
@media (max-width:1024px) {
  .steps-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .directions-grid,
  .steps-grid,
  .price-grid-custom,
  .methods-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .method-card:last-child:nth-child(odd) {
    grid-column: span 1;
  }

  .section {
    padding: 50px 0;
  }
}


/* ========== Footer (Optimized) ========== */

.site-footer {
  background-color: #454728;
  color: rgba(255,255,255,.6);
  padding: 60px 0 40px;
  font-family: 'Inter', sans-serif;

  /* Full width without horizontal scroll */
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .7fr 2.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* Logo */
.footer-logo h2 {
  color: #9C9E30;
  font-size: 1.6rem;
  margin: 0 0 20px;
  font-weight: 400;
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  color: #9C9E30;
  margin-bottom: 25px;
  display: block;
}

/* Navigation */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: opacity .3s ease;
}

.footer-nav a:hover {
  opacity: .85;
}

/* Contacts */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-unit {
  margin-bottom: 20px;
}

.contact-label {
  font-size: .7rem;
  text-transform: uppercase;
  color: #9C9E30;
  display: block;
  margin-bottom: 8px;
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
}

.icon-square {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-square svg {
  width: 16px;
  height: 16px;
  fill: #9C9E30;
}

/* Social */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-item {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
}

.social-item:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.social-item svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.5);
}

.balance-grid {
    display: flex;           /* робимо флекс-контейнер */
    justify-content: center; /* центр карток по горизонталі */
    gap: 20px;               /* відстань між картками */
    flex-wrap: wrap;         /* щоб на мобільних вони переносились */
    margin-top: 30px;
}

.balance-card {
    flex: 1 1 200px;         
    max-width: 250px;        
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* додаємо плавний перехід */
}

.circle-num {
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background: #9C9E30;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}



.balance-card:hover {
    transform: translateY(-10px); /* піднімаємо картку на 10px */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* посилюємо тінь */
}
