/* ========== CSS VARIABLES ========== */
:root {
  --accent: #FF5722;
  --accent-dark: #E64A19;
  --bg: #ffffff;
  --text: #111111;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ========== FONT AWESOME ========== */
/* (Not needed - using simple text symbols instead) */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 4.2vw, 3.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin: 1.5rem 0 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
}

/* ========== SECTION LABELS ========== */
.section-label {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '●';
  color: var(--accent);
  font-size: 1.2rem;
}

p {
  margin-bottom: 0.85rem;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
  margin-bottom: 1.1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--bg);
  border: 2px solid var(--bg);
}

.btn-outline:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
    overflow: visible;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
    height: 68px;
    padding: 0 1rem;
    overflow: visible;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 100%;
  overflow: visible;
}

.brand:hover {
  color: var(--accent);
}

.logo {
  height: clamp(72px, 5.8vw, 90px);
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  will-change: transform, opacity, filter;
  transition: transform 0.35s ease, opacity 0.28s ease, filter 0.3s ease;
}

.brand:hover .logo,
.brand:focus-visible .logo {
  filter: brightness(0) saturate(100%) invert(49%) sepia(90%) saturate(3415%) hue-rotate(347deg) brightness(101%) contrast(101%);
  transform: scale(1.05);
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--text);
  position: relative;
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.burger span,
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger::before {
  top: 13px;
}

.burger span {
  top: 20px;
}

.burger::after {
  top: 27px;
}

.burger.is-open span {
  opacity: 0;
}

.burger.is-open::before {
  top: 20px;
  transform: rotate(45deg);
}

.burger.is-open::after {
  top: 20px;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  gap: 2.35rem;
  list-style: none;
  position: relative;
  align-items: center;
}

.nav > li {
  padding-bottom: 0.45rem;
}

.nav a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(1.08rem, 1.2vw, 1.28rem);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav a.is-current {
  color: var(--accent);
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.35s ease, width 0.35s ease, opacity 0.25s ease;
  pointer-events: none;
}

.nav a:hover,
.nav a:active {
  color: var(--accent);
}

/* ========== HERO ========== */
.hero {
  background-image: url('../img/HomePhoto.jpeg');
  background-size: cover;
  font-weight: 700;
  background-position: center;
  background-attachment: scroll;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-inner {
  padding: 3rem 1rem;
  position: relative;
  z-index: 2;
  color: white;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #f0f0f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* ========== SECTIONS ========== */
.about {
  background: var(--bg);
  text-align: left;
  max-width: 860px;
  margin: 2rem auto;
  padding: 3rem 1.25rem;
}

.about h2 {
  text-align: center;
}

.about p {
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 600;
  max-width: 760px;
  margin: 0 auto 0.95rem;
  text-align: justify;
}

.about-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
  text-align: center;
}


.services-preview {
  text-align: left;
  max-width: 860px;
  margin: 2rem auto;
  padding: 3rem 1.25rem;
}

.services-preview h2 {
  text-align: center;
}

.services-preview .lead {
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 0.95rem;
  text-align: center;
}

.center {
  text-align: center;
}

main.container > h1[data-i18n="services_title"] {
  text-align: center;
}

main.container > h1[data-i18n="contact_title"] {
  text-align: center;
}

main.container > p.lead[data-i18n="services_subtitle"] {
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 0.95rem;
  text-align: center;
}

main.container > p.lead[data-i18n="contact_subtitle"] {
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 0.95rem;
  text-align: center;
}

.services-full {
  max-width: 860px;
  margin: 2rem auto;
}

.service-content {
  flex: 1;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-content h3,
.service-content p,
.service-content .service-checklist {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.service-content .btn {
  align-self: flex-end;
  margin-top: 0.75rem;
  padding: 0.75rem 2rem;
  text-align: center;
}

.center {
  margin: 2rem 0;
}

/* ========== GRID & CARDS ========== */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 2rem 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card h3 {
  padding: 1rem 1rem 0.5rem;
}

.card p {
  padding: 0 1rem 1rem;
  margin: 0;
  color: #666;
}

.member.card {
  text-align: center;
}

.member.card img {
  height: 300px;
}

.member.card h3 {
  padding: 1rem 1rem 0.25rem;
}

.role {
  color: var(--accent);
  font-weight: 600;
  padding: 0 1rem 1rem !important;
}

/* ========== FORM ========== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.contact-form label span {
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 55, 0.1);
}

.form-success {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  color: #155724;
  text-align: center;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--text);
  color: var(--bg);
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contacts {
  font-size: 0.95rem;
}

.contacts a {
  color: var(--accent);
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== SERVICE ITEMS (NEW LAYOUT) ========== */
.services-full {
  margin: 2rem 0;
}

.service-item {
  --service-media-width: clamp(320px, 34vw, 390px);
  --service-media-height: clamp(260px, 28vw, 320px);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-image {
  flex: 0 0 var(--service-media-width);
  overflow: hidden;
  border-radius: 8px;
}

.service-image img {
  width: 100%;
  height: var(--service-media-height);
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.service-content h3 {
  margin-top: 0;
}

.service-content p {
  color: #555;
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 700;
}

.service-checklist {
  display: block;
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
  width: min(100%, var(--service-media-width));
  max-width: var(--service-media-width);
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.35rem 0;
  line-height: 1.35;
  color: #666;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}

.service-checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========== HOW WE WORK ========== */
.how-we-work {
  margin: 2.5rem auto 3.25rem;
  padding: 2.5rem 0.75rem;
}

.how-we-work h2 {
  text-align: center;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.how-we-work .lead {
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  line-height: 1.45;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.process-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0;
}

.process-step {
  padding: 1.9rem 1.65rem;
  min-height: 460px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.process-step:hover {
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.1);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 2.3vw, 2.35rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.process-step h3 {
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(1.1rem, 1.6vw, 1.95rem);
  line-height: 1.15;
}

.process-step p {
  color: #666;
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.4;
}

/* ========== CERTIFICATION ========== */
.certification {
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  border-radius: 12px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.certification h2 {
  color: var(--text);
  margin: 1rem 0 2rem;
  font-size: 2rem;
}

.cert-content {
  max-width: 500px;
  margin: 0 auto;
}

.cert-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.cert-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cert-content .btn {
  margin-top: 1rem;
  display: inline-block;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  margin: 3rem auto;
  padding: 3rem 1rem;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 2rem 0;
}

.testimonial-card {
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-loading,
.no-reviews {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.no-reviews {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.05), rgba(255, 87, 34, 0.02));
  border-radius: 8px;
  border: 1px solid rgba(255, 87, 34, 0.1);
}

.no-reviews h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--text);
}

.no-reviews p {
  font-size: 1rem;
  color: #888;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author small {
  color: #999;
  font-size: 0.85rem;
}

/* ========== LANGUAGE DROPDOWN ========== */
.nav-lang {
  display: flex;
  align-items: center;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  border: 1px solid #ddd;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-trigger:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b42 100%);
  color: white;
  border-color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.2);
  transform: translateY(-2px);
}

.lang-trigger:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1.5px solid #ddd;
  border-radius: 8px;
  margin-top: 0.75rem;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.lang-menu.active {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: linear-gradient(90deg, #f5f5f5 0%, #efefef 100%);
  color: var(--accent);
  padding-left: 1.35rem;
  font-weight: 600;
}

.lang-option.active {
  background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%);
  color: var(--accent);
  font-weight: 700;
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}

/* ========== GALLERY ========== */
.gallery-preview {
  padding: 3rem 0;
  margin: 2rem 0;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 87, 34, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: left;
}

.gallery-info h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
  color: white;
}

.gallery-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-section {
  padding: 2rem 0;
}

.gallery-section h1 {
  text-align: center;
}

.gallery-section .lead {
  text-align: center;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  opacity: 1;
  transition: opacity 0.28s ease;
}

.gallery-lightbox-image.is-changing {
  opacity: 0.25;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

.admin-page {
  max-width: 1220px;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.admin-header {
  margin-bottom: 1rem;
}

.admin-header .lead {
  margin-bottom: 0;
}

.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-card label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-tab-btn {
  border: 1px solid var(--border);
  background: var(--light-gray);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

.admin-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.admin-tab-panel {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 1rem;
}

.admin-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-bottom: 0;
}

.admin-upload-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
}

.admin-status.error {
  background: #fef2f2;
  color: #991b1b;
}

.admin-gallery-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1rem 0;
}

.admin-gallery-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-gallery-item.is-dragging {
  opacity: 0.55;
  border-color: var(--accent);
}

.admin-gallery-item.drop-before {
  box-shadow: inset 0 3px 0 var(--accent);
}

.admin-gallery-item.drop-after {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.admin-gallery-item-preview {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.admin-gallery-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-gallery-item .admin-gallery-full {
  grid-column: 1 / -1;
}

.admin-gallery-item input {
  width: 100%;
}

.admin-gallery-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-gallery-extra-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem;
  background: #fff;
}

.admin-gallery-extra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: #374151;
}

.gallery-extra-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gallery-extra-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.45rem;
}

.gallery-extra-row input {
  width: 100%;
}

.gallery-file-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.gallery-file-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-image-file,
.gallery-extra-file {
  max-width: 270px;
}

.gallery-mini-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  border-radius: 999px;
}

.admin-gallery-drag-hint {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  background: #eef2f7;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  user-select: none;
}

@media (max-width: 780px) {
  .admin-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-inline-toggle {
    margin-left: 0;
  }

  .admin-gallery-item-grid {
    grid-template-columns: 1fr;
  }

  .admin-gallery-extra-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-extra-row {
    grid-template-columns: 1fr;
  }

  .gallery-file-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-image-file,
  .gallery-extra-file {
    max-width: none;
  }
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-direction: row !important;
}

.overrides-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.override-row {
  display: grid;
  grid-template-columns: 1.5fr 120px 1.8fr auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-hint {
  color: #4b5563;
  font-size: 0.92rem;
}

.visual-toolbar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  align-items: center;
}

.visual-toolbar select {
  min-width: 200px;
}

.visual-editor-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.visual-preview-wrap {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

#visual-editor-frame {
  width: 100%;
  height: 700px;
  border: 0;
  background: #fff;
}

.visual-side-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .how-we-work h2 {
    font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  }

  .how-we-work .lead {
    font-size: 1.08rem;
    max-width: 760px;
  }
  
  .services-full {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step {
    min-height: 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .logo {
    height: 62px;
  }

  .nav-wrap {
    height: 60px;
    padding: 0 1rem;
  }

  .burger {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 110;
  }

  .nav-menu.active {
    display: block;
  }

  .nav {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav > li {
    padding-bottom: 0;
  }

  .nav-indicator {
    display: none;
  }

  .nav li {
    border-bottom: 1px solid var(--border);
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .nav a {
    display: block;
    padding: 1rem;
    font-size: 1.04rem;
  }

  .visual-editor-grid {
    grid-template-columns: 1fr;
  }

  #visual-editor-frame {
    height: 460px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .services-full {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .how-we-work h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.45rem);
  }

  .how-we-work .lead {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .process-step {
    min-height: 0;
    padding: 1.5rem 1.25rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .about {
    padding: 2rem 1rem;
  }

  .hero-inner {
    padding: 2rem 1rem;
  }

  .btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .lead {
    font-size: 1rem;
  }
  
  .service-item {
    flex-direction: column;
    gap: 0;
  }

  .service-content {
    margin-top: -0.7rem;
  }

  .service-content h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
  }
  
  .service-image {
    width: 100%;
    height: 240px;
    margin-bottom: 0;
    border-radius: 10px;
  }

  .service-checklist {
    max-width: 100%;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card img {
    height: 150px;
  }

  .member.card img {
    height: 150px;
  }
  
  .modal-content {
    max-width: 90%;
    width: 100%;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .star {
    font-size: 2.5rem;
  }
  
  .star-rating {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 54px;
  }

  .nav-wrap {
    height: 56px;
    padding: 0 0.75rem;
  }

  .burger {
    display: inline-flex;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2rem 0;
    background-attachment: scroll;
  }

  .hero-inner {
    padding: 1.5rem 0.5rem;
  }

  .section-label {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .nav {
    padding: 0.25rem 0;
  }

  .nav a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .nav-lang {
    padding: 0.5rem 0.5rem;
  }
  
  .lang-dropdown {
    width: 100%;
  }
  
  .lang-trigger {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .lang-trigger:hover {
    transform: none;
  }
  
  .lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .lang-option {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .btn {
    width: auto;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-block {
    width: 100%;
  }

  .container {
    padding: 1rem;
    max-width: 100%;
  }

  .lead {
    font-size: 0.95rem;
  }

  .card {
    padding: 1rem;
  }

  .card img {
    height: 120px;
  }

  .member.card img {
    height: 120px;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }

  .process-step {
    padding: 1.5rem;
  }

  .step-number {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .service-item {
    padding: 1rem;
    flex-direction: column;
    gap: 0;
  }

  .service-content {
    margin-top: -0.8rem;
  }

  .service-content h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
  }

  .service-image {
    width: 100%;
    height: 220px;
    margin-bottom: 0;
    border-radius: 10px;
  }
  
  .service-checklist {
    font-size: 0.9rem;
  }

  .contact-form {
    gap: 0.75rem;
  }

  .contact-form label {
    margin-bottom: 0;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner div {
    text-align: center;
  }

  .modal-content {
    max-width: calc(100% - 1rem);
    width: auto;
    padding: 1.25rem;
    margin: 0.5rem;
    border-radius: 6px;
  }

  .modal-close {
    font-size: 1.75rem;
    right: 0.75rem;
    top: 0.75rem;
  }

  .review-form {
    gap: 1rem;
  }

  .rating-section {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .star {
    font-size: 2rem;
  }

  .star-rating {
    gap: 0.5rem;
    margin: 0.75rem 0;
  }

  .review-form input,
  .review-form textarea {
    padding: 0.65rem;
    font-size: 16px;
  }

  .review-form textarea {
    min-height: 80px;
  }

  .load-more-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .brand {
    font-size: 1.25rem;
  }

  /* Fix text overlap */
  p {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Ensure images don't exceed width */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix forms */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.95rem;
  }

  .container {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .modal-content {
    max-width: calc(100% - 0.5rem);
    padding: 1rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .section-label {
    font-size: 0.75rem;
  }
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.review-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-form input,
.review-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Star Rating Component */
.rating-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.rating-section label {
  flex-direction: column;
  align-items: center;
}

.star-rating {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}

.star {
  font-size: 3.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ddd;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.star:hover,
.star.hover {
  color: var(--accent);
  transform: scale(1.15);
}

.star.active {
  color: var(--accent);
}

.review-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
}

.load-more-btn {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

/* ===== MODERN MINIMALIST FOOTER STYLES ===== */
.site-footer {
  background: #111111;
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid #222222;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Column 1: Brand */
.footer-brand {
  gap: 1.5rem;
  text-align: center;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: #ffffff;
}

.footer-brand-sub {
  color: #E85C0D;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b0b0b0;
  margin: 0;
}

/* Column 2: Contacts */
.footer-contacts {
  gap: 0.5rem;
}

.footer-contacts p {
  margin: 0;
  font-size: 0.95rem;
  color: #d0d0d0;
  line-height: 1.6;
}

.footer-contacts strong {
  color: #ffffff;
}

.footer-contacts a {
  color: #E85C0D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: #ff7043;
  text-decoration: underline;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  background: transparent;
  padding: 0;
}

.social-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
}

.social-icon:hover svg {
  filter: drop-shadow(0 8px 20px rgba(232, 92, 13, 0.35));
}

/* Column 3: Quick Links */
.footer-links {
  gap: 1rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-list li a {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link-list li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #E85C0D;
  transition: width 0.3s ease;
}

.footer-link-list li a:hover {
  color: #ffffff;
}

.footer-link-list li a:hover::before {
  width: 100%;
}

/* Section Titles */
.footer-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #808080;
  letter-spacing: 0.3px;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 1024px) {
  .footer-content {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-title {
    font-size: 1.3rem;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .social-icon svg {
    width: 48px;
    height: 48px;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 0 0.75rem;
    margin-top: 2rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-brand-title {
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-section-title {
    font-size: 0.8rem;
  }

  .footer-contacts p,
  .footer-link-list li a {
    font-size: 0.9rem;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .social-icon svg {
    width: 44px;
    height: 44px;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }
}

.load-more-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

