/* ============================================================
   ЭКСЕЛЬМАСТЕР — assets/style.css
   Palette: #1E7145 #217346 #2F3A40 #E7F2EB #F4F8F6
   Fonts: Montserrat (headings) + Open Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:  #217346;
  --green-d:#1E5E3A;
  --green-l:#2C9A5E;
  --slate:  #2F3A40;
  --pale:   #E7F2EB;
  --soft:   #F4F8F6;
  --accent: #9ED9B6;
  --white:  #ffffff;
  --text:   #232b2f;
  --muted:  #56636a;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(33,115,70,0.13);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--slate);
}

a { color: var(--green); text-decoration: none; transition: color .25s; }
a:hover { color: var(--green-d); }

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

ul, ol { padding-left: 1.4rem; }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 90px 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--pale);
  padding: .3rem .9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--slate);
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 6px 24px rgba(33,115,70,.3); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-d) 0%, var(--green-l) 100%);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ---------- Header / Nav ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(31,69,49,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: .03em;
}
.logo-text span { color: var(--accent); }

nav#main-nav { display: flex; align-items: center; gap: 1.6rem; }
nav#main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  white-space: nowrap;
}
nav#main-nav a:hover, nav#main-nav a.active { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--green-d);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/10653886/pexels-photo-10653886.jpeg?auto=compress&cs=tinysrgb&w=1200');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,69,49,.85) 0%, rgba(47,58,64,.70) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 1.5rem;
  margin-top: 68px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.4rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #d6f0e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Showcase ---------- */
#showcase {
  background: var(--soft);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.showcase-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.showcase-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.showcase-card-body { padding: 1.4rem; }
.showcase-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--green-d); }
.showcase-card-body p { font-size: .9rem; color: var(--muted); }

/* ---------- Stats counter ---------- */
#stats {
  background: linear-gradient(135deg, var(--green-d) 0%, var(--green) 100%);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  display: block;
}
.stat-label {
  font-size: .9rem;
  color: var(--accent);
  margin-top: .3rem;
  display: block;
}

/* ---------- About ---------- */
#about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-accent {
  position: absolute;
  bottom: -18px; right: -18px;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--green-l), var(--accent));
  border-radius: 50%;
  opacity: .45;
  z-index: -1;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.badge {
  background: var(--pale);
  color: var(--green-d);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  padding: .35rem .9rem;
  border-radius: 30px;
  border: 1px solid var(--accent);
}

/* ---------- Highlights (что вы освоите) ---------- */
#highlights {
  background: var(--pale);
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.highlight-card {
  background: var(--white);
  border: 1px solid rgba(33,115,70,.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.highlight-card:hover { transform: translateY(-6px); }
.highlight-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.highlight-card-body { padding: 1.4rem; }
.highlight-card-body .dest-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.highlight-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--slate); }
.highlight-card-body p { font-size: .88rem; color: var(--muted); }

/* ---------- Directions (services grid reuse) ---------- */
#services {
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--soft);
  border: 1px solid rgba(33,115,70,.12);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(33,115,70,.18); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green-d), var(--green-l));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--green-d); }
.service-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
#testimonials {
  background: linear-gradient(160deg, var(--green-d) 0%, var(--green) 60%, #2F3A40 100%);
  padding: 90px 0;
}
#testimonials .section-title { color: var(--white); }
#testimonials .section-label { color: var(--white); background: rgba(255,255,255,.12); }
#testimonials .section-sub { color: rgba(255,255,255,.75); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.testi-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s;
}
.testi-card:hover { transform: translateY(-4px); }
.testi-quote { font-size: 2.5rem; color: var(--accent); line-height: 1; margin-bottom: .5rem; }
.testi-text { font-size: .92rem; color: rgba(255,255,255,.88); margin-bottom: 1.4rem; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-l), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; color: var(--white); font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--accent); }
.testi-stars { color: #FFD54F; font-size: .9rem; margin-top: .2rem; }

/* ---------- CTA banner ---------- */
#cta-banner {
  background: linear-gradient(135deg, var(--green-l) 0%, var(--green-d) 100%);
  padding: 80px 0;
  text-align: center;
}
#cta-banner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1rem; }
#cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
#contact {
  background: var(--soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.2rem; color: var(--green-d); }
.contact-info a { color: var(--green); font-weight: 600; }
.contact-detail { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.contact-detail .icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-d), var(--green-l));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
}
.contact-detail-text strong { display: block; font-size: .8rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail-text span { font-size: .92rem; color: var(--muted); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.4rem;
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; border: 0; }

/* Contact form */
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form-wrap h3 { margin-bottom: 1.4rem; color: var(--green-d); }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--slate);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  font-family: 'Open Sans', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: #c62828; font-size: .8rem; margin-top: .3rem; display: none; }
.form-error.show { display: block; }
.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 9px;
  padding: 1rem 1.4rem;
  color: #1b5e20;
  font-size: .93rem;
  display: none;
  margin-top: 1rem;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--slate);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { font-size: .88rem; margin-top: .8rem; line-height: 1.6; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--slate);
  color: var(--white);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 2px solid var(--green-l);
  font-size: .87rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
#cookie-accept, #cookie-decline {
  border: none;
  padding: .6rem 1.6rem;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
}
#cookie-accept {
  background: linear-gradient(135deg, var(--green-l), var(--green-d));
  color: var(--white);
}
#cookie-accept:hover { opacity: .85; }
#cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
#cookie-decline:hover { background: rgba(255,255,255,.12); }

/* ---------- Inner pages (privacy / terms / cookie) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-d) 0%, var(--green) 100%);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,.78); margin-top: .7rem; font-size: .97rem; }

.page-content { padding: 70px 0; }
.page-content .container { max-width: 860px; }

.legal-section { margin-bottom: 2.4rem; }
.legal-section h2 {
  font-size: 1.15rem;
  color: var(--green-d);
  margin-bottom: .7rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--pale);
}
.legal-section p, .legal-section li { font-size: .94rem; color: var(--muted); line-height: 1.75; }
.legal-section ul { margin-top: .5rem; }
.legal-section ul li { margin-bottom: .4rem; }

/* Cookie table */
.cookie-table-wrap { overflow-x: auto; margin: 1rem 0; }
table.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
table.cookie-table th {
  background: var(--green-d);
  color: var(--white);
  padding: .7rem 1rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
table.cookie-table td {
  padding: .65rem 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--pale);
}
table.cookie-table tr:nth-child(even) td { background: var(--soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-top: .6rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap img { height: 320px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 65px 0; }

  nav#main-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--green-d);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  nav#main-nav.open { display: flex; }
  nav#main-nav a { font-size: .95rem; }

  .hamburger { display: flex; }

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

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
}

@media (min-width: 360px) and (max-width: 480px) {
  .container { width: 94%; }
}
