﻿:root {
  --primary: #6ea11f;
  --primary-dark: #4f7f14;
  --secondary: #0f1720;
  --secondary-soft: #1c2833;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1b232b;
  --muted: #556270;
  --radius: 16px;
  --shadow: 0 16px 38px rgba(12, 23, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: var(--secondary);
  color: #eaf1f5;
  font-size: 0.8rem;
}

.topbar-wrap {
  padding: 0.32rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.topbar a {
  color: #e8f8d2;
}

.topbar-contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.topbar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.topbar-label svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-item img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-mail {
  font-size: 0.78rem;
}

.nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 18px rgba(15, 23, 32, 0.07);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
}

.brand img {
  width: 88px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  border: 0;
}

.nav-toggle {
  border: 1px solid #d7e2d0;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  position: absolute;
  top: 72px;
  right: 4vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  position: relative;
  font-weight: 600;
  color: var(--secondary-soft);
  letter-spacing: 0.03em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6ea11f, #8fc841);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #24303c;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(134, 182, 58, 0.28), transparent 34%),
    linear-gradient(98deg, #eef0ec 0%, #edf1e8 42%, #e2ebd6 70%, #d6e5c2 100%);
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0.35rem 0 0.75rem;
  line-height: 1.14;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-family: Sora, sans-serif;
}

.hero-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #dfe4de;
  font-size: 1.02rem;
}

.benefit-list li:last-child {
  border-bottom: 0;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #67a723;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid #cad8bf;
  color: var(--secondary);
  background: #fff;
}

.section {
  padding: 4rem 0;
}

.routes.section {
  padding-bottom: 2.4rem;
}

.tourism.section {
  padding-top: 2.6rem;
}

.section-title {
  margin: 0;
  font-family: Sora, sans-serif;
  line-height: 1.2;
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
}

.section-title-accent {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  position: relative;
  padding-bottom: 0.45rem;
}

.section-title-accent::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ea11f, #9ece55);
}

.section-title-accent::after {
  content: "";
  position: absolute;
  left: calc(100% + 8px);
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ea11f;
  box-shadow: 0 0 0 3px rgba(110, 161, 31, 0.14);
}

.section-head {
  margin-bottom: 1.2rem;
}

.section-head-center {
  text-align: center;
}

.section-head-center .section-lead {
  margin: 0.7rem auto 0;
  font-size: 1rem;
  color: #5f6d7a;
  max-width: 720px;
}

.section-lead {
  color: var(--muted);
  max-width: 760px;
}

.grid-4 {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.card,
.route-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e5ece0;
  box-shadow: 0 10px 24px rgba(14, 24, 32, 0.06);
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(14, 24, 32, 0.1);
}

.route-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.routes {
  position: relative;
  background: var(--bg);
}

.routes .section-title {
  color: #1a232a;
}

.routes .section-lead {
  color: #2a3641;
}

.routes .route-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0.4rem 0 1rem;
}

.route-card-featured {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}

.route-card-featured::before {
  content: "Ruta evidentiata";
  position: absolute;
  top: -0.55rem;
  right: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d6411;
  background: rgba(132, 180, 70, 0.16);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.routes .route-card h3,
.routes .route-node h4 {
  color: #1a232a;
}

.route-title {
  margin: 0 0 0.55rem;
  letter-spacing: 0.03em;
}

.route-title-featured {
  text-align: center;
  position: relative;
  margin-bottom: 1rem;
}

.route-title-featured::after {
  content: "";
  display: block;
  width: 220px;
  max-width: 55%;
  height: 10px;
  margin: 0.35rem auto 0;
  border-bottom: 3px solid #6ea11f;
  border-radius: 100% 100% 80% 80%;
  transform: skewX(-10deg);
  opacity: 0.9;
}

.routes .route-node p {
  color: #2a3641;
}

.route-card h3,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.services .card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
}

.services .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6ea11f, #8fc841);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.services .card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #70ad23, #568716);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 20px rgba(86, 135, 22, 0.25);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  color: #4f7f14;
  font-weight: 700;
}

.service-link::after {
  content: "→";
  transition: transform 0.24s ease;
}

.services .card:hover .service-link::after {
  transform: translateX(4px);
}

.route-flow {
  margin-top: 1rem;
  overflow-x: auto;
  padding: 0.9rem 0 1.2rem;
  scrollbar-width: thin;
  position: relative;
}

.route-track {
  list-style: none;
  margin: 0;
  padding: 0 0.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  min-width: 1120px;
  height: 280px;
  position: relative;
}

.route-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, rgba(122, 157, 80, 0.72), rgba(103, 143, 54, 0.72));
  border-radius: 999px;
  transform: translateY(-50%);
}



.route-node {
  position: relative;
  padding: 0;
}

.route-node img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  z-index: 2;
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.route-node::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: rgba(103, 143, 54, 0.66);
  transform: translateX(-50%);
}

.route-node:nth-child(odd) img {
  top: calc(50% - 74px);
}

.route-node:nth-child(even) img {
  top: calc(50% + 36px);
}

.route-node:nth-child(odd)::before {
  top: calc(50% - 36px);
  height: 34px;
}

.route-node:nth-child(even)::before {
  top: calc(50% + 2px);
  height: 34px;
}

.route-node .node-body {
  position: absolute;
  left: 50%;
  width: min(210px, 100%);
  transform: translateX(-50%);
  text-align: center;
}

.route-node:nth-child(odd) .node-body {
  top: calc(50% + 14px);
}

.route-node:nth-child(even) .node-body {
  bottom: calc(50% + 14px);
}

.route-node h4 {
  margin: 0 0 0.18rem;
  font-size: 1rem;
  line-height: 1.2;
  font-family: Sora, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.route-node p {
  margin: 0;
  color: #d6e7d2;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tourism {
  background: var(--bg);
  color: var(--text);
}

.tourism-content {
  text-align: center;
}

.tourism .section-lead {
  margin: 0.7rem auto 0;
  color: #5f6d7a;
}

.tour-badges {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.tour-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #27402f;
  background: rgba(122, 170, 45, 0.16);
  border: 1px solid rgba(122, 170, 45, 0.34);
  box-shadow: 0 8px 18px rgba(20, 36, 26, 0.1);
}

.tour-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ed551;
  margin-right: 0.45rem;
}

.tour-cta {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}

.footer {
  background: #ffffff;
  color: #1a232a;
  border-top: 8px solid #7ea61d;
  margin-top: 3rem;
  padding: calc(2.2rem + 30px) 0 1rem;
}

.footer-main {
  display: grid;
  gap: 1.4rem;
}

.footer-brand img {
  width: 180px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  margin: 0 auto 0.65rem;
  display: block;
}

.footer-brand h3 {
  margin: 0 0 0.3rem;
  font-family: Sora, sans-serif;
  text-align: center;
}

.footer-brand p {
  margin: 0;
  color: #40505f;
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  margin: 0 0 1.45rem;
  color: #1a232a;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ea11f, #9ece55);
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: calc(100% + 8px);
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ea11f;
  box-shadow: 0 0 0 3px rgba(110, 161, 31, 0.14);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.38rem;
  color: #344454;
  font-size: 0.95rem;
}

.footer-col a.phone-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-bottom: 0.68rem;
}

.phone-row {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.phone-icon {
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1;
}

.phone-number {
  color: #223343;
  font-weight: 700;
  line-height: 1.1;
}

.phone-meta {
  display: block;
  padding-left: 0;
  color: #526274;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-line {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.footer-col a.info-line {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.footer-col p.info-line {
  margin-bottom: 0.95rem;
}

.info-icon {
  color: var(--primary);
  line-height: 1.1;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marker-icon {
  color: #1a232a;
}

.info-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mail-icon svg {
  width: 17px;
  height: 17px;
}

.marker-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(53, 76, 98, 0.2);
  font-size: 0.92rem;
}

.footer a {
  color: #2e4d12;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (min-width: 768px) {
  .topbar-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .hero-wrap {
    grid-template-columns: 1.55fr 1fr;
    align-items: center;
  }

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

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

  .footer-main {
    grid-template-columns: 1.15fr 1fr 1fr;
    align-items: start;
  }
}

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

  .contact-grid {
    grid-template-columns: 1.3fr 1.3fr 1fr;
  }
}

@media (max-width: 767px) {
  .topbar {
    font-size: 0.76rem;
  }

  .topbar-wrap {
    padding: 0.26rem 0;
    gap: 0.14rem;
  }

  .topbar-contact {
    gap: 0.28rem 0.5rem;
  }

  .topbar-label {
    width: 100%;
    margin-bottom: 0.05rem;
  }

  .topbar-item {
    white-space: nowrap;
  }

  .topbar-mail {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .brand img {
    width: 74px;
  }

  .nav-toggle {
    padding: 0.4rem 0.72rem;
  }

  .route-flow {
    overflow-x: visible;
    padding: 0.55rem 0 0.2rem;
  }

  .route-track {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    height: auto;
    padding: 0 0.15rem;
  }

  .route-track::before {
    left: 18px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform: none;
  }

  .route-node,
  .route-node:nth-child(odd),
  .route-node:nth-child(even) {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .route-node::before,
  .route-node:nth-child(even)::before {
    display: none;
  }

  .route-node img {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 36px;
    height: 36px;
    margin: 0;
    z-index: 2;
  }

  .route-node .node-body {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    text-align: left;
    padding-left: 0;
    max-width: calc(100% - 46px);
  }

  .route-node h4 {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
  }

  .route-node p {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}
