:root {
  --primary-color: #6d8b74;
  --primary-dark: #516a58;
  --secondary-color: #d0c9c0;
  --accent-color: #7d6071;
  --accent-dark: #634957;
  --text-color: #333734;
  --muted-color: #666c68;
  --light-color: #f5f5f3;
  --paper-color: #ffffff;
  --line-color: rgba(75, 96, 81, 0.16);
  --shadow: 0 8px 26px rgba(38, 51, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

body {
  color: var(--text-color);
  background: var(--light-color);
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #c7a8bb;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--accent-dark);
  border-radius: 2rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(109, 139, 116, 0.12);
  box-shadow: 0 2px 12px rgba(23, 35, 27, 0.08);
  backdrop-filter: blur(14px);
}

.header-container {
  min-height: 5.1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex: 0 0 auto;
  color: var(--primary-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.logo span {
  color: var(--accent-color);
}

nav {
  margin-inline-start: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

nav a {
  position: relative;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

nav a::after {
  position: absolute;
  right: 50%;
  bottom: -0.42rem;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--accent-color);
  transition: right 180ms ease, left 180ms ease;
}

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

nav a:hover::after {
  right: 0;
  left: 0;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  direction: ltr;
  gap: 0.3rem;
}

.lang-btn {
  min-width: 2.8rem;
  padding: 0.35rem 0.65rem;
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: white;
  background: var(--accent-color);
}

.hero {
  min-height: 100svh;
  padding: 9rem 0 5rem;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(rgba(25, 35, 28, 0.52), rgba(25, 35, 28, 0.58)),
    url("../img/top.webp") center / cover no-repeat;
  text-align: center;
}

.hero-content {
  max-width: 55rem;
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--accent-color);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e6dce2;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-content > p:not(.eyebrow) {
  max-width: 44rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.btn {
  min-height: 3.2rem;
  padding: 0.75rem 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--accent-color);
  border: 1px solid transparent;
  border-radius: 2rem;
  box-shadow: 0 12px 28px rgba(48, 31, 41, 0.2);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 16px 34px rgba(48, 31, 41, 0.26);
  transform: translateY(-2px);
}

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

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

.services {
  padding: 6.5rem 0;
  background: var(--paper-color);
}

.section-title {
  max-width: 46rem;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.section-title h2,
.about-content h2,
.cta h2 {
  color: var(--primary-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-title > p:last-child {
  margin-top: 0.9rem;
  color: var(--muted-color);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--light-color);
  border: 1px solid var(--line-color);
  border-radius: 0.85rem;
  box-shadow: 0 6px 18px rgba(32, 46, 36, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-img {
  height: 14rem;
  overflow: hidden;
  background: var(--secondary-color);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.service-card:hover .service-img img {
  transform: scale(1.045);
}

.service-content {
  padding: 1.55rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
}

.service-content p {
  margin-bottom: 1.35rem;
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.7;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-color);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.about {
  padding: 6.5rem 0;
  background: var(--light-color);
}

.about-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.about-content h2 {
  margin-bottom: 1.4rem;
}

.about-content > p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--muted-color);
  font-size: 1.03rem;
}

.about-content .btn {
  margin-top: 0.7rem;
}

.about-img {
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-color);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.cta {
  min-height: 32rem;
  padding: 5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background:
    linear-gradient(rgba(22, 29, 24, 0.7), rgba(22, 29, 24, 0.74)),
    url("../img/bottom.webp") center / cover no-repeat fixed;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
  color: white;
}

.cta p {
  max-width: 42rem;
  margin: 0 auto 1.7rem;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1.1rem;
}

footer {
  padding: 3.5rem 0 1.25rem;
  color: white;
  background: var(--primary-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.72fr 1.28fr;
  align-items: start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h2 {
  position: relative;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.footer-col h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  content: "";
  background: #d7c1ce;
}

html[dir="ltr"] .footer-col h2::after {
  right: auto;
  left: 0;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col p {
  margin-bottom: 0.8rem;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.contact-icon {
  margin-inline-end: 0.35rem;
  color: #eadde5;
}

.social-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.65rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.footer-whatsapp {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 0.25rem;
}

.hours strong {
  color: white;
  font-size: 1.05rem;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 11.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(35, 52, 40, 0.18);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 0.7rem;
  display: inline-block !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 0.25rem;
}

.copyright {
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-container {
    grid-template-columns: 1fr 0.75fr;
    gap: 3rem;
  }

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

@media (max-width: 780px) {
  html {
    scroll-padding-top: 4.6rem;
  }

  .container {
    width: min(100% - 2rem, 42rem);
  }

  .header-container {
    min-height: 4.6rem;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.45rem;
  }

  nav {
    display: none;
  }

  .language-switcher {
    margin-inline-start: auto;
  }

  .lang-btn {
    min-width: 2.55rem;
    padding-inline: 0.55rem;
  }

  .hero {
    min-height: 44rem;
    padding-top: 7.5rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
  }

  .services,
  .about {
    padding: 5rem 0;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    width: min(100%, 28rem);
    justify-self: center;
    order: -1;
  }

  .cta {
    min-height: 27rem;
    background-attachment: scroll;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-img {
    height: 13.5rem;
  }

  .service-content {
    padding: 1.3rem;
  }

  .section-title h2,
  .about-content h2,
  .cta h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Последняя карточка по центру */
@media (min-width: 981px) {
  .service-card-last {
    grid-column: 2;
  }
}

/* Планшеты — центрируем между двумя колонками */
@media (min-width: 561px) and (max-width: 980px) {
  .service-card-last {
    grid-column: 1 / -1;
    width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }
}