:root {
  --green-main: #0fb25b;
  --green-dark: #089049;
  --green-light: #e8f9f1;
  --blue-dark: #082f49;
  --bg-page: #f3f5fb;
  --text-main: #1f2933;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.17);
  --shadow-card: 0 10px 26px rgba(15, 23, 42, 0.12);
  --transition: 0.25s ease;
}

/* Базові стилі */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at top, #e2f8ff 0, #f3f5fb 40%, #edf7f1 100%);
  color: var(--text-main);
}

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

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

/* Контейнер секцій */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Заголовки */
.section-title {
  text-align: center;
  color: var(--blue-dark);
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-title-small {
  font-size: 1.6rem;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 26px;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    90deg,
    rgba(10, 148, 85, 0.95),
    rgba(8, 120, 101, 0.95)
  );
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f9fafb;
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Меню */
.nav-menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfdf5;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: background var(--transition),
    transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.nav-link i {
  font-size: 0.92rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  width: 0;
  height: 2px;
  background: #fde68a;
  border-radius: 999px;
  transition: width var(--transition);
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.nav-link:hover::after {
  width: 45%;
}

/* Telegram top button */
.btn-telegram-top {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(8, 47, 73, 0.55);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-telegram-top:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.7);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #f9fafb;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Основний відступ під fixed navbar */
main {
  padding-top: 80px;
}

/* Hero */
.hero {
  position: relative;
  background: url('hero-bg.jpg') center center / cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.7), transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.75), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.9));
  mix-blend-mode: multiply;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  z-index: 1;
}

.hero-text-block h1 {
  color: #f9fafb;
  font-size: 2.1rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-text-block .accent {
  color: #a5f3fc;
}

.hero-subtitle {
  color: #e5e7eb;
  font-size: 0.96rem;
  max-width: 520px;
}

.hero-buttons {
  margin: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  font-size: 0.86rem;
  color: #e5e7eb;
  opacity: 0.96;
}

/* Hero label */
.hero-text-block .hero-label span {
  display: inline-block;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.7);
}

.btn-green:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 44px rgba(22, 163, 74, 0.85);
}

.btn-outline-light {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.5);
}

.btn-outline-light:hover {
  background: #f9fafb;
  color: #0f172a;
}

/* Hero info card */
.hero-info-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 60%),
              rgba(15, 23, 42, 0.86);
  color: #f9fafb;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-info-header span {
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.hero-list li {
  margin-bottom: 6px;
}

.hero-list .hero-small {
  font-size: 0.78rem;
  opacity: 0.95;
}

/* Секції */
.section {
  margin: 16px 0;
  padding: 44px 0;
}

/* Про нас */
.about-section {
  background: linear-gradient(135deg, #e0fbf2 0%, #c7f3e3 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.15), transparent 55%);
  opacity: 0.7;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
  z-index: 1;
}

.about-icon i {
  font-size: 3.2rem;
  color: #0f766e;
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.about-content p {
  margin-bottom: 8px;
  color: #374151;
}

/* Переваги */
.benefits-section {
  background: #f9fafb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  text-align: left;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
  transform: translate(-12px, 12px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--green-main);
}

.feature-icon i {
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 4px 0 4px;
  font-size: 1rem;
  color: var(--blue-dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Як ми працюємо */
.how-section {
  background: #ffffff;
}

.how-section .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.step-card {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 20px 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover::after {
  opacity: 1;
}

.step-number {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  z-index: 1;
}

.step-card i {
  font-size: 1.6rem;
  color: var(--green-main);
  margin-bottom: 4px;
  z-index: 1;
  position: relative;
}

.step-card h3 {
  margin: 6px 0 6px;
  color: var(--blue-dark);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: 0.9rem;
  color: #4b5563;
  position: relative;
  z-index: 1;
}

/* Послуги */
.services-section {
  background: var(--green-light);
}

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

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 4px;
}

.service-icon i {
  font-size: 1.3rem;
}

.service-card h3 {
  margin: 4px 0 6px;
  color: var(--blue-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.card-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

/* Кнопки усередині карток */
.btn-outline {
  border-radius: 999px;
  border: 1px solid var(--blue-dark);
  background: transparent;
  color: var(--blue-dark);
  padding: 9px 16px;
}

.btn-outline:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* Категорії */
.categories-section {
  background: #ffffff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.category-img {
  border-radius: 12px;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-card h3 {
  margin: 4px 0 4px;
  color: var(--blue-dark);
}

.category-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

/* Ліцензія */
.license-section {
  background: var(--green-light);
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.license-card,
.license-info {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.license-img {
  border-radius: 12px;
  height: 100%;
  object-fit: cover;
}

.license-info h3 {
  margin-top: 0;
  color: #0f766e;
}

.license-info p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Відгуки */
.reviews-section {
  background: #ffffff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.review-img {
  width: 100%;
  height: auto;
}

/* Контакти */
.contact-section {
  background: radial-gradient(circle at top, #e0f2fe 0, #e6f7ee 40%, #ffffff 100%);
}

.contact-card {
  max-width: 380px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.manager-photo {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e0f2fe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.contact-card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.btn-telegram-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.75);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-telegram-main i {
  font-size: 1.1rem;
}

.btn-telegram-main:hover {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 54px rgba(8, 47, 73, 0.9);
}

/* Scroll top + footer */
.scroll-top-wrapper {
  text-align: center;
  margin: 28px 0 16px;
}

.scroll-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.24);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.scroll-top-btn .arrow {
  transition: transform var(--transition);
}

.scroll-top-btn:hover {
  background: #0f172a;
  color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
}

.scroll-top-btn:hover .arrow {
  transform: translateY(-1px);
}

.scroll-footer {
  font-size: 0.82rem;
  color: #6b7280;
}

.scroll-footer a {
  color: #15803d;
  text-decoration: underline;
}

/* Плаваючий Telegram (мобільний) */
.telegram-float-mobile {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0ea5e9;
  color: #fff;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  animation: pulse 2.2s infinite;
}

.telegram-float-mobile:hover {
  background: #0369a1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 16px rgba(14, 165, 233, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

/* Адаптив */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-info-card {
    margin-top: 16px;
  }

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

@media (max-width: 820px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 16px 12px;
    background: linear-gradient(
      180deg,
      rgba(10, 148, 85, 0.98),
      rgba(8, 120, 101, 0.98)
    );
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
  }

  .burger {
    display: flex;
  }

  .btn-telegram-top {
    width: 100%;
    justify-content: center;
  }

  .section-inner {
    padding: 18px 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
  }

  .hero-text-block h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .telegram-float-mobile {
    display: flex;
  }
}
