/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
  --green:        #54af3a;
  --green-dark:   #458a31;
  --green-pale:   #e8f5e3;
  --text:         #5b5b5b;
  --text-dark:    #2c2c2c;
  --bg-white:     #ffffff;
  --bg-light:     #f7f7f7;
  --bg-gray:      #ebebeb;
  --border:       #d4d4d4;
  --shadow:       0 2px 10px rgba(0, 0, 0, 0.08);
  --radius:       4px;
  --font:         'Montserrat', sans-serif;
  --max-width:    1240px;
  --pad-section:  60px 0;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: var(--green); }
ul { list-style: none; }
button { font-family: var(--font); }

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Topbar --- */
.topbar {
  background: var(--bg-gray);
  border-bottom: 1px solid #ddd;
  padding: 7px 0;
}

.topbar-phones {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.phone-link:hover { color: var(--green-dark); }

/* --- Messenger icons (Viber, WhatsApp, Telegram) --- */
.phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-links {
  display: flex;
  align-items: center;
  gap: 3px;
}

.msg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
  line-height: 1;
}

.msg-link:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

.msg-viber    { color: #7360F2; }
.msg-whatsapp { color: #25D366; }
.msg-telegram { color: #0088CC; }

/* --- Main header --- */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-svg { flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.logo-sub {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.4px;
  text-transform: lowercase;
  white-space: nowrap;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  width: 42px;
  height: 38px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 80px;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: #111;
}

/* Dark overlay so white text stays readable over the photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/pokos-travy.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #fff;
}

.hero-link {
  color: var(--green);
  text-decoration: none;
}
.hero-link:hover { text-decoration: underline; }

.hero-price {
  font-size: 1rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.hero-price strong {
  font-size: 1.3rem;
  color: #fff;
}

.hero-desc {
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
}

.hero-desc-label { margin: 10px 0 6px; }

.hero-desc ul {
  padding-left: 18px;
  list-style: disc;
}

.hero-desc ul li { padding: 2px 0; }

.hero-also {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* ========================================
   SECTION COMMONS
   ======================================== */
.section-title {
  text-align: center;
  color: var(--green);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 36px;
  line-height: 1.3;
}

/* ========================================
   PRICE
   ======================================== */
.price-section {
  padding: var(--pad-section);
  background: var(--bg-white);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
}

.price-table th {
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--green-dark);
}

.price-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text);
}

.price-table .cell-what {
  text-align: left;
  min-width: 200px;
}

.price-table tbody tr:nth-child(odd) { background: var(--bg-light); }
.price-table tbody tr:hover { background: var(--green-pale); }

.price-table em {
  font-size: 12px;
  font-style: normal;
  color: #888;
}

.td-center { font-weight: 600; color: var(--text-dark); }

.price-notes {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}

/* ========================================
   ORDER INFO
   ======================================== */
.order-info {
  padding: var(--pad-section);
  background: var(--bg-light);
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.icon-box {
  width: 90px;
  height: 90px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.icon-box:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-pale);
}

.icon-box svg { width: 44px; height: 44px; }

.icon-item p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ========================================
   ADDITIONAL SERVICES
   ======================================== */
.additional-services {
  padding: var(--pad-section);
  background: var(--bg-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.check-list li:last-child { border-bottom: none; }

.check-list i {
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================
   TEXT + IMAGE SECTIONS
   ======================================== */
.text-image-section { padding: var(--pad-section); background: var(--bg-white); }
.text-image-section--alt { background: var(--bg-light); }

.three-col {
  display: grid;
  grid-template-columns: 1fr 2fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.col-heading h3 {
  color: var(--green);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.col-body p { margin-bottom: 14px; font-size: 14px; }
.col-body p:last-child { margin-bottom: 0; }

.check-alt {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.check-alt li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  line-height: 1.5;
}

.check-alt li:last-child { border-bottom: none; }

.check-alt i {
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Image placeholders (replace with real <img> when ready) */
.col-image {
  border-radius: var(--radius);
  min-height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.img-trimmer {
  background-image: url('../img/leska.png');
  background-size: cover;
  background-position: center;
}

.img-grass {
  background-image: url('../img/disk.png');
  background-size: cover;
  background-position: center;
}

/* ========================================
   FOR WHOM
   ======================================== */
.for-whom {
  padding: var(--pad-section);
  background: var(--bg-gray);
}

.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.forwhom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.forwhom-icon {
  width: 76px;
  height: 76px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: border-color 0.2s, background 0.2s;
}

.forwhom-icon:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

.forwhom-icon svg { width: 38px; height: 38px; }

.forwhom-item p { font-size: 12px; color: var(--text); line-height: 1.4; }

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-section {
  padding: var(--pad-section);
  background: var(--bg-white);
}

.accordion {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  transition: background 0.15s;
}

.accordion-btn:hover { background: var(--bg-light); }

.acc-icon {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  transition: transform 0.25s;
}

.accordion-btn[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  padding: 14px 20px 18px 52px;
  font-size: 14px;
  color: var(--text);
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.accordion-panel[hidden] { display: none; }

/* ========================================
   REVIEWS / SLIDER
   ======================================== */
.reviews-section {
  padding: var(--pad-section);
  background: var(--bg-gray);
}

.slider-wrapper {
  overflow: hidden;
  position: relative;
}

/* Track: flex row, width/gap managed by JS */
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Card: flex-basis set by JS */
.review-card {
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.review-body {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

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

/* Photo avatar */
.review-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid #e0f0da;
}

/* Initial circle (no photo) */
.review-avatar--initial {
  background: var(--avatar-color, #aaa);
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  user-select: none;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.review-meta span {
  font-size: 12px;
  color: var(--green);
}

.review-meta time {
  font-size: 11px;
  color: #aaa;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active,
.slider-dot:hover {
  background: var(--green);
  transform: scale(1.3);
}

/* ========================================
   CONTACTS
   ======================================== */
.contacts-section {
  padding: var(--pad-section);
  background: var(--bg-white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contacts-info h3 {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 14px;
}

.contacts-line {
  width: 44px;
  height: 3px;
  background: var(--green);
  margin-bottom: 24px;
  border-radius: 2px;
}

.contacts-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contacts-list li:last-child { border-bottom: none; }

.contacts-list i {
  color: var(--green);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.contacts-list a {
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.contacts-list a:hover { color: var(--green-dark); }

.contacts-map iframe {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--text);
  padding: 20px 0;
  border-top: 1px solid #333;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-instagram {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-instagram:hover { color: #fff; }

.footer-instagram i { font-size: 18px; }

/* ========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .forwhom-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .three-col {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
  }

  .col-image {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}

/* ========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ======================================== */
@media (max-width: 768px) {

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Nav becomes dropdown */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 16px 24px 20px;
    z-index: 999;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child .nav-link { border-bottom: none; }

  /* Topbar */
  .topbar-phones {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Hero */
  .hero { padding: 50px 0 60px; min-height: auto; }
  .hero-content h1 { font-size: 1.25rem; }

  /* Icons grid */
  .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Three-col */
  .three-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .col-image { min-height: 180px; }

  /* For whom */
  .forwhom-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Slider: card width controlled by JS, no extra CSS override needed */

  /* Contacts */
  .contacts-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
  .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .icon-box { width: 72px; height: 72px; }
  .icon-box svg { width: 36px; height: 36px; }

  .forwhom-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .forwhom-icon { width: 64px; height: 64px; }
  .forwhom-icon svg { width: 30px; height: 30px; }

  .logo-name { font-size: 18px; }

  .section-title { font-size: 1.2rem; }

  .accordion-btn { font-size: 14px; padding: 14px 16px; }
  .accordion-panel { padding: 12px 16px 14px 46px; }
}
