
:root {
  --green-dark:#1f4f0c;
  --green-main:#2f6b12;
  --green-light:#5fa43a;
  --glass:rgba(255,255,255,.08);
  --white:#fff;
  --bg-primary: #0f1f08;
  --bg-secondary: rgba(0, 0, 0, 0.4);
  --text-primary: #fff;
  --text-secondary: #e6f2df;
  --text-muted: rgba(255,255,255,.7);
}

[data-theme="light"] {
  --bg-primary: #f5f7f2;
  --bg-secondary: rgba(240, 245, 235, 0.5);
  --text-primary: #1a3a0d;
  --text-secondary: #2f4a20;
  --text-muted: rgba(26, 58, 13, 0.6);
}

html{
  scroll-behavior: smooth;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif}

body{
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.7;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header{
  position:fixed;
  top:0;left:0;right:0;
  padding:20px 80px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  backdrop-filter:blur(10px);
  background: var(--bg-secondary);
  z-index:10;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: var(--text-secondary);
}

[data-theme="light"] header {
  color: #1a3a0d;
}

    nav a {
      margin-left: 32px;
      text-decoration: none;
      color: var(--text-secondary);
      font-weight: 500;
      position: relative;
      transition: color 0.3s ease;
    }

    [data-theme="light"] nav a {
      color: #1a3a0d;
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--green-light);
      transition: 0.3s;
    }

    nav a:hover::after {
      width: 100%;
    }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.theme-toggle-circle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

[data-theme="light"] .theme-toggle {
  background: rgba(47, 107, 18, 0.2);
  border-color: rgba(47, 107, 18, 0.4);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(47, 107, 18, 0.3);
  border-color: rgba(47, 107, 18, 0.5);
}

[data-theme="light"] .theme-toggle-circle {
  left: 33px;
  content: '☀️';
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.fade-out {
  animation: fadeDown 0.6s ease-out forwards;
}

.hero{
  min-height:100vh;
  background:
    linear-gradient(135deg, rgba(0,0,0,.7), rgba(15,31,8,.8)),
    url("figures/background.png") center/cover;
  display:flex;
  flex-direction: column;
  justify-content:center;
  padding:120px 80px 80px 80px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

[data-theme="light"] .hero {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("figures/background.png") center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(95, 164, 58, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-content{
  max-width:800px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease-out;
}

.hero h1{
  font-size:72px;
  line-height:1.1;
  margin-bottom:24px;
  font-weight: 700;
  background: linear-gradient(135deg, #a8e6a1, var(--green-light), var(--green-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero p{
  font-size:22px;
  opacity:.9;
  margin-bottom:48px;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero .hero-note {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  opacity: 0.95;
}

.btn{
  padding:20px 48px;
  border:none;
  border-radius:40px;
  background:linear-gradient(135deg,var(--green-light),var(--green-main));
  color:#fff;
  font-weight:600;
  font-size:18px;
  cursor:pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(95, 164, 58, 0.4);
  position: relative;
  z-index: 2;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(95, 164, 58, 0.35);
}

.btn:active {
  transform: translateY(-2px);
}

.glass-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease;
}

[data-theme="light"] .glass-box {
  background: rgba(95, 164, 58, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

section {
  padding: 80px 80px;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 44px;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}

.about img{
  width:100%;
  border-radius:24px;
}

#about p {
  font-size: 18px;
  max-width: 520px;
  opacity: 0.9;
  color: var(--text-primary);
}

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:32px;
}

.service-card{
  background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.03));
  border-radius:24px;
  overflow:hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .service-card {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.1), rgba(95, 164, 58, 0.05));
}

.service-card:hover{
  transform:translateY(-8px);
  box-shadow: 0 20px 40px rgba(95, 164, 58, 0.2);
}

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

.service-card div{
  padding:24px;
}

.faq details,
#faq details {
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.15), rgba(47, 107, 18, 0.1));
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(95, 164, 58, 0.2);
  transition: all 0.5s ease;
  overflow: hidden;
}

#faq details p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(95, 164, 58, 0.2);
  opacity: 0.95;
  font-size: 15px;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="light"] #faq details {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.12), rgba(95, 164, 58, 0.06));
  border-color: rgba(95, 164, 58, 0.3);
}

#faq summary {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

#faq summary::before {
  content: '›';
  font-size: 28px;
  font-weight: bold;
  transition: transform 0.3s ease;
  display: inline-block;
  min-width: 20px;
}

#faq details[open] > summary::before {
  transform: rotate(90deg);
}

#faq details[open] {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.25), rgba(47, 107, 18, 0.15));
  border-color: rgba(95, 164, 58, 0.4);
}

[data-theme="light"] #faq details[open] {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.2), rgba(95, 164, 58, 0.12));
  border-color: rgba(95, 164, 58, 0.4);
}

#faq details:hover {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.2), rgba(47, 107, 18, 0.12));
  border-color: rgba(95, 164, 58, 0.3);
}

[data-theme="light"] #faq details:hover {
  background: linear-gradient(160deg, rgba(95, 164, 58, 0.15), rgba(95, 164, 58, 0.1));
  border-color: rgba(95, 164, 58, 0.35);
}

#request {
  background:
    linear-gradient(135deg, rgba(0,0,0,.7), rgba(15,31,8,.8)),
    url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf") center/cover;
}

[data-theme="light"] #request {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf") center/cover;
}

#request h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.request-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  padding: 48px;
  border-radius: 32px;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .request-wrapper {
  background: rgba(95, 164, 58, 0.08);
}

.request-text p {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  opacity: 0.95;
  max-width: 520px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.request-text {
  padding-left: 24px;
  border-left: 3px solid var(--green-light);
}

.request-form {
  display: grid;
  gap: 16px;
}

.request-form input,
.request-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: rgba(255,255,255,.7);
}

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

.request-form button {
  margin-top: 12px;
}

@media(max-width:900px){
  .request-wrapper {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 40px 80px;
  transition: background-color 0.3s ease;
}

[data-theme="light"] footer {
  background: rgba(95, 164, 58, 0.08);
}

.contacts-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.contact-card {
  background: linear-gradient(
    160deg,
    rgba(95, 164, 58, 0.15),
    rgba(47, 107, 18, 0.1)
  );
  border: 1px solid rgba(95, 164, 58, 0.2);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.3s ease;
}

[data-theme="light"] .contact-card {
  background: linear-gradient(
    160deg,
    rgba(95, 164, 58, 0.12),
    rgba(95, 164, 58, 0.06)
  );
  border-color: rgba(95, 164, 58, 0.25);
}

.contact-card:hover {
  background: linear-gradient(
    160deg,
    rgba(95, 164, 58, 0.2),
    rgba(47, 107, 18, 0.15)
  );
  border-color: rgba(95, 164, 58, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(95, 164, 58, 0.15);
}

.contact-card h3 {
  color: var(--green-light);
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-card p {
  margin-bottom: 12px;
  line-height: 1.6;
  opacity: 0.95;
  font-size: 14px;
}

.contact-card strong {
  color: var(--green-light);
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-card a {
  color: var(--green-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-card a:hover {
  color: #a8e6a1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(95, 164, 58, 0.2);
  border: 1px solid rgba(95, 164, 58, 0.3);
  border-radius: 8px;
  color: var(--green-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

[data-theme="light"] .social-icon {
  background: rgba(95, 164, 58, 0.12);
  border-color: rgba(95, 164, 58, 0.25);
}

.social-icon i {
  font-size: 18px;
  min-width: 20px;
}

.social-icon:hover {
  background: rgba(95, 164, 58, 0.3);
  border-color: rgba(95, 164, 58, 0.5);
  transform: translateX(4px);
  color: #a8e6a1;
}

@media (max-width: 900px) {
  footer {
    padding: 40px 24px;
  }
  .contacts-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  z-index: 15;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

@media(max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  header {
    padding: 16px 24px !important;
    position: sticky !important;
    top: 0;
  }

  .header-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column !important;
    gap: 0 !important;
    background: var(--bg-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 14;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-content.active {
    max-height: 400px;
    padding: 20px;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
  }

  .nav-menu a {
    margin-left: 0 !important;
    font-size: 16px;
  }

  section, .hero {
    padding: 40px 24px;
  }

  .hero {
    padding: 100px 24px 40px 24px !important;
    background-position: 60% center !important;
  }

  [data-theme="light"] .hero {
    background-position: 60% center !important;
  }

  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  p, .hero p, .request-text p {
    font-size: 15px !important;
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .request-wrapper {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }

  .request-text {
    padding-left: 0 !important;
    padding-bottom: 16px !important;
    border-left: none !important;
    border-bottom: 3px solid var(--green-light);
  }

  footer {
    padding: 40px 24px !important;
  }
}

/* Media query для узкой высоты экрана */
@media (max-height: 700px) {
  .hero {
    padding: 100px 80px 40px 80px !important;
  }
  
  .hero h1 {
    font-size: 48px !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }
  
  .hero p {
    font-size: 18px !important;
    margin-bottom: 32px !important;
  }
}

@media (max-height: 550px) {
  .hero {
    padding: 90px 80px 30px 80px !important;
  }
  
  .hero h1 {
    font-size: 36px !important;
    margin-bottom: 12px !important;
  }
  
  .hero p {
    font-size: 16px !important;
    margin-bottom: 24px !important;
  }
  
  .btn {
    padding: 12px 32px !important;
    font-size: 14px !important;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .hero {
    padding: 80px 24px 30px 24px !important;
  }
  
  .hero h1 {
    font-size: 28px !important;
  }
  
  .hero p {
    font-size: 14px !important;
  }
}