/* Torfela Horticultural Services — Main Stylesheet */

:root {
  --bg-olive: #2D3A1F;
  --bg-olive-dark: #1E2814;
  --bg-black: #0D0D0D;
  --text-white: #FFFFFF;
  --text-muted: #C8D4BC;
  --green: #4A7C3A;
  --green-light: #5E9A4B;
  --green-dark: #3A6230;
  --shadow: rgba(0, 0, 0, 0.45);
  --transition: 0.3s ease;
  --header-height: 72px;
  --max-width: 1200px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-olive);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-white);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
}

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

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-white);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--green);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-olive-dark);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 15px;
  flex-wrap: nowrap;
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text-white);
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-light);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.header-contacts span {
  color: var(--text-muted);
}

.header-contacts p,
.header-contacts a {
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

.header-contacts a:hover {
  color: var(--green-light);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px 10px;
  width: 44px;
  height: 44px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition);
}

.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-contacts {
  display: none;
}

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 40, 20, 0.55), rgba(30, 40, 20, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 8px var(--shadow);
  max-width: 800px;
}

.hero-overlay p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--green);
  color: var(--text-white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green-light);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--text-white);
}

/* ===== STRENGTHS ===== */
.strengths-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.strength-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--bg-black);
  padding: 30px 24px;
  text-align: center;
  border: 3px double var(--green);
  box-shadow: 6px 6px 0 var(--green-dark), 8px 8px 20px var(--shadow);
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.strength-card:hover {
  transform: translateY(-4px);
}

.strength-card h3 {
  color: var(--green-light);
  margin-bottom: 12px;
}

.strength-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-black);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--green);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  color: var(--green-light);
}

.service-card-body p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card-body .btn {
  margin-top: 16px;
  align-self: flex-start;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-light);
  margin: 10px 0;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-block {
  background: var(--bg-black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
}

.achievements-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-light);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== FORMS ===== */
.form-section {
  background: var(--bg-black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-olive-dark);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  display: none;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(74, 124, 58, 0.25);
  border: 2px solid var(--green);
  color: var(--green-light);
}

.form-message.error {
  display: block;
  background: rgba(180, 50, 50, 0.2);
  border: 2px solid #B43232;
  color: #E88;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-black);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--green-light);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.about-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--green);
}

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

.mission-strips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.mission-strip {
  flex: 1 1 250px;
  background: var(--bg-black);
  border-left: 4px solid var(--green);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mission-strip h3 {
  color: var(--green-light);
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.benefit-item {
  background: var(--bg-black);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-number {
  background: var(--green);
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== BONUS PROGRAM ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.bonus-item {
  text-align: center;
  background: var(--bg-black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 30px 20px;
}

.bonus-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.bonus-item h3 {
  color: var(--green-light);
  font-size: 1.1rem;
}

/* ===== GUARANTEES ===== */
.guarantee-block {
  background: var(--bg-black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px 0;
}

.guarantee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.guarantee-list li {
  padding: 16px;
  border-left: 3px solid var(--green);
  color: var(--text-muted);
}

.guarantee-list li::before {
  content: '✓ ';
  color: var(--green-light);
  font-weight: 700;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-block {
  background: var(--bg-black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-block h3 {
  color: var(--green-light);
  margin-bottom: 20px;
}

.contact-detail {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.contact-detail strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 4px;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-content h1 {
  margin-bottom: 30px;
  color: var(--green-light);
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-white);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-olive-dark);
  border-top: 2px solid var(--green);
  padding: 50px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 56px;
  width: 56px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav a {
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-contacts p,
.footer-contacts a {
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.footer-contacts a:hover {
  color: var(--green-light);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-social a {
  color: var(--green-light);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--green-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a {
  color: var(--text-muted);
  margin-right: 20px;
}

.footer-legal a:hover {
  color: var(--green-light);
}

.text-block {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.text-block-long {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--bg-black);
  padding: 50px 0;
  text-align: center;
  border-bottom: 2px solid var(--green);
}

.page-header h1 {
  color: var(--green-light);
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HOW TO ORDER ===== */
.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.order-step {
  background: var(--bg-black);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.step-number {
  background: var(--green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .burger-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-olive-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    border-bottom: 2px solid var(--green);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .header-contacts {
    display: none;
  }

  .mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--green-dark);
    width: 100%;
  }

  .mobile-contacts p,
  .mobile-contacts a {
    color: var(--text-muted);
    white-space: nowrap;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-contacts {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    height: 350px;
  }

  .strengths-grid {
    flex-direction: column;
    align-items: center;
  }

  .strength-card {
    max-width: 100%;
    width: 100%;
  }

  section {
    padding: 40px 0;
  }

  .form-section,
  .achievements-block,
  .guarantee-block {
    padding: 24px;
  }
}

@media (min-width: 769px) {
  .strengths-grid {
    flex-direction: row;
  }
}
