/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
@import url('https://fonts.cdnfonts.com/css/gilroy-bold?styles=20876,20878'); /* Gilroy Medium, SemiBold */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&display=swap'); /* JetBrains Mono as primary monospaced font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap'); /* Roboto Mono as fallback */

:root {
  --bg: #fffefb;
  --text: #121212;
  --accent: #00843D;
  --muted: #6b6b6b;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
  --header-height: 64px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400; /* Inter Regular for body text */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

/* Headings */
h1, h2, h3 {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500; /* Gilroy Medium for headings */
}

h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 600; } /* Gilroy SemiBold for H1 */
h2 { font-size: 28px; font-weight: 600; } /* Gilroy SemiBold for H2 */
h3 { font-size: 18px; font-weight: 500; } /* Gilroy Medium for H3 */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-weight: 500; /* Inter Medium for buttons */
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.btn.outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn.outline:hover {
  background: rgba(0, 132, 61, 0.06);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

hr {
  border: none;
}
hr::before {
  content: '';
  display: inline-block;
  width: 30%;
  height: 4px;
  border-radius: 8px;
  background: var(--accent);
}

/* Form inputs, including referral codes and IDs */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400; /* Inter Regular for general form inputs */
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Specific inputs for referral codes and IDs */
input[name="referral_code"], input[name="order_id"] {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-weight: 400; /* Monospaced font for codes/IDs */
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.12);
}

/* Floating label adjustments for form fields */
.form-field.fl input,
.form-field.fl textarea,
.form-field.fl select {
  padding: 16px 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%236b6b6b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.form-field.fl input[name="referral_code"],
.form-field.fl input[name="order_id"] {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-weight: 400;
}

/* Rest of the existing styles remain unchanged */
img { display: block; max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: var(--accent); color: #fff; }

/* Header */
/* Default header appearance for non-home pages (soft translucent) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255,255,255,0.72); /* soft translucent background for pages without hero */
  backdrop-filter: blur(6px);
  border-bottom: none; /* Remove border for seamless look */
  transition: background .3s ease; /* Smooth transition for potential hover effects */
  min-height: var(--header-height);
}

/* On the homepage: header must be transparent so hero image shows through */
.home .site-header {

  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  height: var(--header-height);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  height: calc(var(--header-height) + 12px); 
}


/* mobile/home header adjustments (remain transparent) */
@media (max-width: 820px) {
  .home .site-header {
    background: transparent;
    backdrop-filter: none;
  }
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.logo img { width: 220px; height: auto; object-fit: contain; }
.logo-text { letter-spacing: 0.2px; }


.nav { display: flex; align-items: center; gap: 18px; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text); padding: 6px 8px; border-radius: 10px; transition: background .25s ease, color .25s ease, transform .2s ease; }
.nav-links a,
.mobile-drawer a {
  font-size: 14px; 
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.8); color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.06); }


.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: transparent; align-items: center; justify-content: center; gap: 5px; flex-direction: column; padding: 8px; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease; }
.burger:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer { position: fixed; inset: 64px 0 auto 0; background: rgba(255,255,255,0.98); border-top: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 16px; z-index: 30; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.mobile-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mobile-drawer a { display: block; padding: 12px 10px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .25s ease, color .25s ease; }
.mobile-drawer a:hover { background: var(--bg); color: var(--accent); }

/* Hero */
/* Hero holds the background image and is pulled up under the fixed header so header appears transparent */
.home .hero {
  padding: 0;
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--header-height)); /* pull hero up under fixed header */
  padding-top: var(--header-height); /* keep content below header */
  position: relative;
  background: url('../img/zerkalfon.JPG') center top/cover no-repeat;
  min-height: 100vh;
}
.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 18%, rgba(255,255,255,0.72) 34%, rgba(255,255,255,0.36) 52%, rgba(255,255,255,0.08) 72%, rgba(255,255,255,0) 100%);
}
.hero { margin-top: 0; }

.site-header::after { display: none; content: none; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 36px; position: relative; z-index: 1; }
.home .hero-inner { grid-template-columns: 1fr; justify-items: start; align-items: center; min-height: 100%; }
.home .hero-content { text-align: left; max-width: 820px; margin: 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 0 0 18px; }
.hero p { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.home .hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 24px; }
.home .hero p { margin-bottom: 32px; }
.home .hero-content .btn + .btn { margin-left: 14px; }
.hero-content .btn + .btn { margin-left: 12px; }
.hero-content .btn + .btn { margin-left: 10px; }
.home .hero-media { display: none; }

.btn { display: inline-block; padding: 12px 18px; border-radius: 9999px; text-decoration: none; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* About brief */
.about-brief { padding: 36px 0 8px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease; }
.about-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.about-card h3 { margin: 0 0 6px; font-size: 18px; }
.about-card p { margin: 0; color: var(--muted); }
.about-img { border-radius: 20px; }

/* Section head */
.section-head { display: flex; gap: 18px; margin-bottom: 28px; align-items: baseline; }
.section-head svg { cursor: pointer;; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head h2 a { color: var(--accent); text-decoration: none; }
.section-head h2 a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Products */
.products { padding: 96px 0 128px; margin-top: -8px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { 
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform .28s ease, box-shadow .32s ease, border-color .3s ease; 
  cursor: pointer;
}
.product-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1px rgba(255,255,255,0.5);
}
.product-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 28px 60px rgba(0,0,0,0.14);
  border-color: rgba(0,0,0,0.08);
}
.product-card img { 
  width: 100%; height: 260px; object-fit: cover; 
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.0);
  transition: transform .45s ease, filter .45s ease; 
  will-change: transform, filter;
}
.product-card:hover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.04); }
.product-card h3 { font-size: 16px; margin: 14px 16px 18px; font-weight: 600; letter-spacing: .1px; }
.product-card h3 a { color: var(--accent); text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card .product-desc { display: block; margin: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Advantages */
.advantages { padding: 28px 0 8px; }
.adv-grid { display: flex; flex-direction: row; gap: 18px; }
.adv-item { background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 0px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease; }
.adv-item:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); }
.adv-icon { font-size: 28px; }
.adv-item h3 { margin: 0 0 6px; }
.adv-item p { margin: 0;}

/* Contacts */
.contacts-grid {
  display: flex;
  flex-direction: row; 
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.contacts-info, .contacts-map {
  flex: 1; 
  display: flex;
  flex-direction: column;
}

.contacts-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px; 
  box-shadow: var(--shadow);
  line-height: 1.5; 
}

.contacts-map {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  justify-content: center; 
  align-items: center;
}

.contacts-map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
  .contacts-grid {
    flex-direction: column;
    align-items: center;
  }

  .contacts-map {
    max-width: 100%;
    margin-top: 18px;
  }
}

.contacts-info a {
  color: var(--accent);
  text-decoration: none;
}

.contacts-info a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  padding: 20px 0;
  color: var(--text);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  row-gap: 0;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.footer-info { justify-self: start; }
.footer-nav { justify-self: center; }
.footer-phone { justify-self: end; }

.footer-info {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
}

.footer-info p {
  margin: 0;
  color: var(--muted);
}

.footer-info a {
  color: var(--accent);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-grow: 1;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-phone {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
  color: var(--muted);
}

.footer-phone a {
  color: var(--accent);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  row-gap: 0;
}

.footer-dso { justify-self: start; }
.footer-copy { justify-self: center; }
.footer-license { justify-self: end; }

.footer-dso,
.footer-copy,
.footer-license {
  margin: 0;
}

.footer-dso {
  color: var(--muted);
  font-weight: 400; /* Bolder font for DSO-FZCO-29798 */
}

.footer-copy {
  color: var(--muted);
  text-align: center;
  flex-grow: 1;
}

.footer-license {
  color: var(--muted); /* Gray color for License: 31786 */
}

/* Responsive Footer */
@media (max-width: 820px) {
  .home .hero { min-height: 90svh; background: url('/img/mobile-bgc.jpg') right / cover no-repeat; }
  .home .hero::before { 
    background: linear-gradient(to top, rgba(255,254,251,0.98) 0%, rgba(255,254,251,0.92) 22%, rgba(255,254,251,0.8) 38%, rgba(255,254,251,0.5) 60%, rgba(255,254,251,0.18) 80%, rgba(255,254,251,0) 100%);
  }
  .home .hero-content { max-width: 100%; text-align: center;}
  .home .hero h1 { font-size: clamp(44px, 7vw, 48px); }
  .home .hero p { font-size: 15px; }
  .home .hero-content .btn { display: inline-flex; }
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
    text-align: center;
  }

  .footer-info,
  .footer-nav,
  .footer-phone {
    justify-self: center;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
  }

  .footer-phone {
    flex-direction: column;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home .hero { min-height: 90svh; }
  .home .hero-content .btn { text-align: center; }
  .home .hero-content .btn + .btn { margin-left: 0; margin-top: 12px; }
  .site-footer {
    padding: 15px 0;
  }
  
  .footer-info p,
  .footer-nav a,
  .footer-phone p,
  .footer-dso,
  .footer-copy,
  .footer-license {
    font-size: 12px;
    width: 100%;
  }
}

/* Reveal up animation */
.reveal-up { opacity: 0; transform: translateY(12px); animation: none; }
.reveal-up.visible { animation: revealUp .6s ease forwards; }
.reveal-up.delay-1.visible { animation-delay: .1s; }
.reveal-up.delay-2.visible { animation-delay: .2s; }
.reveal-up.delay-3.visible { animation-delay: .3s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .contacts-grid {
    flex-direction: column; 
  }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .products { padding: 64px 0 128px; }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid, .adv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contacts-map img {
    max-height: 300px; /* Maintain the height limit for small screens */
  }
}

/* Contact form */
.contact-form { padding: 12px 0 48px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.form-col-2 { grid-column: span 2; }
label { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,0.12); }
input[type="password"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,0,0.12); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-actions { margin-top: 8px; }
.form-note { margin-top: 10px; color: var(--accent); }

/* Modern form enhancements */
.form-card { position: relative; overflow: hidden; }
.form-grid { gap: 16px; }
.form-field.fl { position: relative; margin-top: 10px; }
.form-field.fl input,
.form-field.fl textarea,
.form-field.fl select { padding: 16px 14px 14px; appearance: none; -webkit-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="%236b6b6b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.form-field.fl label {
  position: absolute; left: 12px; top: 12px; font-size: 13px; color: var(--muted);
  pointer-events: none; background: #fff; padding: 0 6px; transform-origin: left top;
  transition: transform .18s ease, color .18s ease, top .18s ease, font-size .18s ease;
}
.form-field.fl input:focus + label,
.form-field.fl input:not([value=""]) + label,
.form-field.fl textarea:focus + label,
.form-field.fl textarea:not([value=""]) + label,
.form-field.fl select:focus + label,
.form-field.fl select:not([value=""]) + label {
  top: -8px; transform: translateY(0); color: var(--accent); font-size: 12px;
}
.form-field.fl input,
.form-field.fl textarea,
.form-field.fl select {
  background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.04) inset;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px rgba(255,122,0,0.1), 0 1px 0 rgba(0,0,0,0.06) inset; }

/* Button loading state */
.btn[disabled] { opacity: .7; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.form-col-2 { grid-column: span 1; }
  
  /* News slider mobile */
  .news-card { flex: 0 0 50%; }
  .news-card img { height: 150px; }
  .news-card-content { padding: 16px; }
  .news-card h3 { font-size: 16px; }
}

@media (max-width: 480px) {
  .news-card { flex: 0 0 100%; }
  .news-card img { height: 180px; }
  .slider-controls { margin: 16px 0; }
  .slider-btn { width: 40px; height: 40px; }
}

/* Login page */
.login-section { padding: 80px 0; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.login-container { max-width: 400px; margin: 0 auto; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { margin: 0 0 8px; font-size: 32px; }
.login-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-options { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; }
.forgot-link { color: var(--accent); text-decoration: none; font-size: 14px; }
.forgot-link:hover { text-decoration: underline; }
.full-width { width: 100%; }
.login-footer { text-align: center; margin-top: 24px; }
.login-footer a { color: var(--accent); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* Register page */
.register-section { padding: 80px 0; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.register-container { max-width: 500px; margin: 0 auto; }
.register-header { text-align: center; margin-bottom: 32px; }
.register-header h1 { margin: 0 0 8px; font-size: 32px; }
.register-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.register-footer { text-align: center; margin-top: 24px; }
.register-footer a { color: var(--accent); text-decoration: none; }
.register-footer a:hover { text-decoration: underline; }

/* Legal pages (Terms of Service, Privacy Policy) */
.legal-section { padding: 80px 0; min-height: calc(100vh - 64px); }
.legal-container { max-width: 800px; margin: 0 auto; }
.legal-header { text-align: center; margin-bottom: 48px; }
.legal-header h1 { margin: 0 0 8px; font-size: 36px; font-weight: 600; }
.legal-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.legal-content + .legal-content { margin-top: 24px; }
.legal-content h2 { margin: 32px 0 16px; font-size: 24px; font-weight: 600; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; line-height: 1.6; color: var(--text); }
.legal-content ul { margin: 0 0 16px; padding-left: 24px; }
.legal-content li { margin: 0 0 8px; line-height: 1.6; color: var(--text); }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Legal content table styling */
.legal-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; }
.legal-content th, .legal-content td { padding: 12px; text-align: left; }
.legal-content thead th { background: #faf7f1; font-weight: 600; border-bottom: 2px solid rgba(0,0,0,0.28); }
.legal-content tbody tr { border-top: 1px solid rgba(0,0,0,0.28); }
.legal-content tbody tr:nth-child(even) { background: #fffdf9; }
.legal-content tbody tr:first-child { border-top: 1px solid rgba(0,0,0,0.28); }
.legal-content thead th + th, .legal-content tbody td + td { border-left: 1px solid rgba(0,0,0,0.28); }
.legal-content table { border: 1px solid rgba(0,0,0,0.28); border-radius: 10px; overflow: hidden; }

/* Card link wrappers */
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link .legal-content { transition: transform .2s ease, box-shadow .25s ease; }
.card-link:hover .legal-content { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

/* News section */
.news { padding: 80px 0; background: var(--bg); }
.news-slider { position: relative; }
.news-container { overflow: hidden; border-radius: var(--radius); }
.news-track { display: flex; transition: transform 0.5s ease; }
.news-card { flex: 0 0 33.333%; padding: 0 12px; }
.news-card { cursor: pointer; }
.news-card-inner { 
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); 
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card-inner:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-content { padding: 20px; }
.news-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--text); }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Slider controls */
.slider-controls { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }
.slider-btn { 
  width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; 
  background: #fff; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.slider-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.slider-btn:disabled:hover { background: #fff; color: var(--text); border-color: var(--border); }

/* Slider dots */
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dot { 
  width: 12px; height: 12px; border-radius: 50%; background: var(--border); 
  cursor: pointer; transition: background 0.3s ease;
}
.slider-dot.active { background: var(--accent); }
.slider-dot:hover { background: var(--accent); }

/* News Modal */
.modal-overlay { 
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
  background: rgba(0,0,0,0.8); z-index: 1000; 
  display: flex; align-items: center; justify-content: center; 
  padding: 20px; opacity: 0; transition: opacity 0.3s ease;
  visibility: hidden;
}
.modal-overlay:not([hidden]) { 
  opacity: 1; 
  visibility: visible;
}
.modal-container { 
  background: #fff; border-radius: var(--radius); 
  max-width: 600px; width: 100%; max-height: 90vh; 
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay:not([hidden]) .modal-container { transform: scale(1); }
.modal-header { 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 24px 24px 0; border-bottom: 1px solid var(--border); 
  margin-bottom: 24px; padding-bottom: 16px;
}
.modal-header h2 { margin: 0; font-size: 24px; font-weight: 600; color: var(--text); }
.modal-close { 
  width: 40px; height: 40px; border: none; background: none; 
  cursor: pointer; border-radius: 50%; display: flex; 
  align-items: center; justify-content: center; color: var(--muted);
  transition: all 0.3s ease;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-content { padding: 0 24px 24px; }
.modal-content img { 
  width: 100%; height: 300px; object-fit: cover; 
  border-radius: var(--radius); margin-bottom: 20px;
}
.modal-content p { 
  margin: 0; line-height: 1.6; color: var(--text); 
  font-size: 16px;
}

/* Sticky footer */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* Cookie Consent Modal specific styles */
.cookie-consent {
  z-index: 1001; /* Make sure it's above other modals */
}
.cookie-consent .modal-container {
  max-width: 500px;
  text-align: center;
}
.cookie-consent h2 {
  margin-bottom: 16px;
  font-size: 22px;
}
.cookie-consent p {
  margin-bottom: 24px;
  font-size: 15px;
}
.cookie-consent .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Access Denied Page styles */
.access-denied-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.access-denied-container h1 {
  font-size: 48px;
  color: #e74c3c;
  margin-bottom: 20px;
}
.access-denied-container p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 30px;
}
.access-denied-container .btn {
  padding: 12px 24px;
  font-size: 16px;
}

.contacts {
  padding: 80px 0 48px; 
}

/* Legal Modal should be above cookie consent */
#legal-modal { z-index: 1100; }
#legal-modal .modal-container { max-width: 800px; }


.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;


  transform: translateY(-1px);
  transition: transform .18s ease;
}


.logo img {
  width: 220px;
  height: auto;
  object-fit: contain;
  display: block;

  
  transform: translateY(-6px);
  transition: transform .18s ease;
}


.logo-text {
  letter-spacing: 0.2px;
  transform: translateY(-2px);
  transition: transform .18s ease;
}


@media (max-width: 820px) {
  .logo,
  .logo img {
    transform: translateY(-3px);
  }
  .logo-text {
    transform: translateY(-1px);
  }
}


@media (max-width: 820px) {
  .home .site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
}


.logo {
 
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.logo img {
 
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.logo-text {
  
  transform: translateY(1px);
  transition: transform .18s ease;
}


@media (max-width: 820px) {
  .logo,
  .logo img {
    transform: translateY(3px);
  }
  .logo-text {
    transform: translateY(2px);
  }
}
