:root {
  --green-dark: #102f24;
  --green-main: #1f8a4c;
  --green-bright: #49d17d;
  --green-light: #dff7e8;
  --mint: #effff5;
  --white: #ffffff;
  --black: #07120d;
  --gray: #6c7a72;
  --border: rgba(31, 138, 76, 0.18);
  --shadow: 0 24px 70px rgba(16, 47, 36, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 10% 10%, rgba(73, 209, 125, 0.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(31, 138, 76, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fff9 0%, #effff5 45%, #ffffff 100%);
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(31, 138, 76, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(16, 47, 36, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), var(--green-bright));
  box-shadow: 0 10px 30px rgba(31, 138, 76, 0.35);
}

.logo-text {
  font-size: 18px;
  letter-spacing: -0.03em;
}

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

.nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--white);
  background: var(--green-main);
  transform: translateY(-2px);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--green-main);
  cursor: pointer;
  position: relative;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
  transition: 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);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto 0;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

.badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--green-main);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  font-size: 14px;
}

.badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 6px rgba(73, 209, 125, 0.18);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 26px;
}

.hero p {
  max-width: 640px;
  color: var(--gray);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), var(--green-bright));
  box-shadow: 0 16px 40px rgba(31, 138, 76, 0.28);
}

.btn-secondary {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.map-card {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 0.82;
  border-radius: 46px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 247, 232, 0.85)),
    repeating-linear-gradient(
      45deg,
      rgba(31, 138, 76, 0.08) 0 2px,
      transparent 2px 22px
    );
  border: 1px solid rgba(31, 138, 76, 0.18);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: floatCard 5s ease-in-out infinite;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px dashed rgba(31, 138, 76, 0.2);
  border-radius: 34px;
}

.map-title {
  position: absolute;
  top: 34px;
  left: 34px;
  right: 34px;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 20px;
  color: var(--white);
  background: var(--green-dark);
  font-weight: 900;
  font-size: 18px;
}

.route-path {
  position: absolute;
  left: 70px;
  top: 150px;
  width: 310px;
  height: 310px;
  border: 6px solid transparent;
  border-left-color: var(--green-main);
  border-bottom-color: var(--green-bright);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.9;
}

.map-point {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 47, 36, 0.16);
}

.map-point span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-main);
}

.point-one {
  top: 155px;
  left: 95px;
}

.point-two {
  top: 250px;
  right: 78px;
}

.point-three {
  bottom: 125px;
  left: 120px;
}

.point-four {
  bottom: 70px;
  right: 110px;
}

.big-pin {
  position: absolute;
  z-index: 5;
  right: 70px;
  bottom: 150px;
  animation: bouncePin 2.5s ease-in-out infinite;
}

.pin-head {
  width: 74px;
  height: 74px;
  border: 10px solid var(--white);
  border-radius: 50% 50% 50% 0;
  background: var(--green-main);
  transform: rotate(-45deg);
  box-shadow: 0 18px 42px rgba(31, 138, 76, 0.35);
}

.pin-head::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  inset: 18px;
  border-radius: 50%;
  background: var(--white);
}

.decor-line {
  position: absolute;
  z-index: -1;
  border: 3px solid rgba(31, 138, 76, 0.13);
  border-radius: 50%;
}

.line-one {
  width: 520px;
  height: 230px;
  left: -150px;
  top: 40px;
  transform: rotate(-18deg);
}

.line-two {
  width: 420px;
  height: 190px;
  right: -160px;
  bottom: 100px;
  transform: rotate(28deg);
}

.floating-dot {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--green-bright);
  opacity: 0.55;
  animation: floatDot 5s ease-in-out infinite;
}

.dot-one {
  width: 18px;
  height: 18px;
  left: 38%;
  top: 8%;
}

.dot-two {
  width: 28px;
  height: 28px;
  right: 6%;
  top: 22%;
  animation-delay: 0.8s;
}

.dot-three {
  width: 14px;
  height: 14px;
  left: 8%;
  bottom: 18%;
  animation-delay: 1.3s;
}

.sections-block,
.partners-block,
.contacts-block {
  padding: 90px 0 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading span,
.contact-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-main);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 640px;
  margin-top: 14px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.big-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 138, 76, 0.16);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(16, 47, 36, 0.09);
  transition: 0.3s ease;
}

.big-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.big-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(73, 209, 125, 0.16);
}

.routes-card {
  background: linear-gradient(135deg, #ffffff, #effff5);
}

.videos-card {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(73, 209, 125, 0.5), transparent 30%),
    linear-gradient(135deg, var(--green-dark), var(--green-main));
}

.videos-card p {
  color: rgba(255, 255, 255, 0.78);
}

.card-bg-symbol {
  position: absolute;
  right: 28px;
  top: 12px;
  font-size: 150px;
  line-height: 1;
  opacity: 0.09;
  font-weight: 900;
}

.card-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 22px;
  background: rgba(73, 209, 125, 0.18);
  font-size: 32px;
}

.big-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.big-card p {
  position: relative;
  z-index: 2;
  max-width: 470px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.5;
}

.big-card span {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 34px;
  font-weight: 900;
  color: var(--green-main);
}

.videos-card span {
  color: var(--green-light);
}

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

.partner-card {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 138, 76, 0.16);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 36px rgba(16, 47, 36, 0.06);
}

.main-partner {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), var(--green-bright));
}

.partner-name {
  font-size: 18px;
  font-weight: 900;
}

.placeholder {
  color: rgba(16, 47, 36, 0.42);
  border-style: dashed;
}

.contacts-block {
  padding-bottom: 90px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(73, 209, 125, 0.55), transparent 28%),
    linear-gradient(135deg, var(--green-dark), var(--green-main));
  box-shadow: var(--shadow);
}

.contact-card p {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.55;
}

.contact-card .contact-label {
  color: var(--green-light);
}

.footer {
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--gray);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

@keyframes bouncePin {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.15);
  }
}

/* Routes page */
.routes-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: 80px 0 40px;
  position: relative;
}

.routes-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 20px;
  width: 360px;
  height: 180px;
  border: 3px solid rgba(31, 138, 76, 0.14);
  border-radius: 50%;
  transform: rotate(-18deg);
  z-index: -1;
}

.routes-hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

.routes-hero p {
  max-width: 720px;
  color: var(--gray);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.routes-page {
  padding: 40px 0 90px;
}

.filters-panel {
  padding: 28px;
  border: 1px solid rgba(31, 138, 76, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(16, 47, 36, 0.08);
}

.filters-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.filters-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green-main);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters-top h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.routes-count {
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), var(--green-bright));
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(31, 138, 76, 0.22);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.filter-group h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(31, 138, 76, 0.18);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  background: var(--green-main);
  transform: translateY(-2px);
}

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

.route-tile {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(31, 138, 76, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(73, 209, 125, 0.22), transparent 30%),
    linear-gradient(135deg, #ffffff, #effff5);
  box-shadow: 0 14px 44px rgba(16, 47, 36, 0.08);
  cursor: pointer;
  transition: 0.28s ease;
  text-align: left;
}

.route-tile:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.route-tile-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.route-distance {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-main), var(--green-bright));
  font-weight: 900;
}

.route-symbol {
  color: rgba(31, 138, 76, 0.25);
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
}

.route-tile h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-tags span,
.modal-stats span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--green-main);
  background: rgba(73, 209, 125, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  border: 1px dashed rgba(31, 138, 76, 0.28);
  border-radius: var(--radius-lg);
  color: var(--gray);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-weight: 800;
}

.empty-state.visible {
  display: block;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 20px;
}

.modal.active {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 13, 0.68);
  backdrop-filter: blur(10px);
}

.modal-window {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
}

.modal-info {
  padding: 38px;
}

.modal-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-main);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-info h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.modal-info p {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.55;
}

.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-map {
  min-height: 520px;
  background: var(--green-light);
}

.modal-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

@media (min-width: 1180px) {
  .routes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .header {
    top: 12px;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(31, 138, 76, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(16, 47, 36, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    margin-top: 56px;
    padding-bottom: 20px;
  }

  .hero-visual {
    order: -1;
  }

  .map-card {
    max-width: 420px;
  }

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

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .routes-hero {
    margin-top: 56px;
    padding-top: 58px;
  }

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

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-map,
  .modal-map iframe {
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .container,
  .hero {
    width: min(100% - 24px, 1180px);
  }

  .header {
    width: calc(100% - 20px);
    padding: 10px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    margin-top: 44px;
    gap: 30px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .map-card {
    border-radius: 34px;
  }

  .map-title {
    top: 22px;
    left: 22px;
    right: 22px;
    font-size: 15px;
  }

  .route-path {
    left: 42px;
    top: 125px;
    width: 250px;
    height: 250px;
  }

  .point-one {
    top: 135px;
    left: 60px;
  }

  .point-two {
    top: 220px;
    right: 50px;
  }

  .point-three {
    bottom: 110px;
    left: 78px;
  }

  .point-four {
    bottom: 58px;
    right: 80px;
  }

  .big-pin {
    right: 44px;
    bottom: 120px;
  }

  .pin-head {
    width: 62px;
    height: 62px;
  }

  .sections-block,
  .partners-block,
  .contacts-block {
    padding-top: 64px;
  }

  .big-card {
    min-height: 340px;
    padding: 26px;
    border-radius: 26px;
  }

  .big-card span {
    left: 26px;
    bottom: 26px;
  }

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

  .partner-card {
    min-height: 110px;
  }

  .contact-card {
    padding: 28px;
    border-radius: 26px;
  }

  .routes-hero {
    width: min(100% - 24px, 1180px);
    margin-top: 44px;
  }

  .filters-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .filters-top {
    flex-direction: column;
  }

  .routes-count {
    width: 100%;
    text-align: center;
  }

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

  .modal {
    padding: 10px;
  }

  .modal-window {
    border-radius: 24px;
  }

  .modal-info {
    padding: 28px 22px;
  }

  .footer {
    font-size: 14px;
  }
}
/* Videoguides page */
.video-page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: 80px 0 40px;
  position: relative;
}

.video-page-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 20px;
  width: 360px;
  height: 180px;
  border: 3px solid rgba(31, 138, 76, 0.14);
  border-radius: 50%;
  transform: rotate(-18deg);
  z-index: -1;
}

.video-page-hero h1 {
  max-width: 780px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

.video-page-hero p {
  max-width: 720px;
  color: var(--gray);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.videoguides-block {
  padding: 40px 0 90px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(31, 138, 76, 0.16);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(16, 47, 36, 0.09);
  cursor: pointer;
  transition: 0.3s ease;
}

.video-tile:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-light);
}

.video-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.video-tile::after {
  content: "Открыть видео";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 47, 36, 0.78);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 900;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  padding: 20px;
}

.video-modal.active {
  display: grid;
  place-items: center;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 18, 13, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
}

.video-modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 960px) {
  .video-page-hero {
    margin-top: 56px;
    padding-top: 58px;
  }

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

@media (max-width: 620px) {
  .video-page-hero {
    width: min(100% - 24px, 1180px);
    margin-top: 44px;
  }

  .video-modal {
    padding: 10px;
  }

  .video-modal-content,
  .video-modal-player {
    border-radius: 24px;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
  }
}
