/* ==========================================================
   CarpentryPro — Main Stylesheet
   ========================================================== */

/* ----------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------- */
:root {
  --white:       #FFFFFF;
  --bg-light:    #F8F7F4;
  --text-dark:   #1A1A1A;
  --text-muted:  #6B6B6B;
  --accent:      #A0784A;
  --accent-dark: #8B6914;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --nav-height: 70px;
  --max-width:  1200px;
  --section-py: 100px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url('../assets/img/cursor-hammer.svg') 6 6, auto;
}

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

/* Кликабельные элементы — тот же молоток */
a,
button,
[role="button"],
.portfolio__item,
.faq__question,
.nav__burger,
input[type="submit"],
input[type="button"],
label[for],
select {
  cursor: url('../assets/img/cursor-hammer.svg') 6 6, pointer;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  cursor: url('../assets/img/cursor-hammer.svg') 6 6, text;
}

/* Тряска страницы при клике */
@keyframes page-shake {
  0%   { transform: translate(0, 0); }
  15%  { transform: translate(var(--sx1, -5px), var(--sy1, -28px)); }
  35%  { transform: translate(var(--sx2,  4px), var(--sy2,  18px)); }
  55%  { transform: translate(var(--sx3, -3px), var(--sy3, -10px)); }
  75%  { transform: translate(var(--sx4,  2px), var(--sy4,   5px)); }
  100% { transform: translate(0, 0); }
}

body.shaking {
  animation: page-shake 0.55s ease-out;
}

/* Щепки */
.wood-chip {
  position: absolute;
  pointer-events: none;
  z-index: 9998;
  border-radius: 2px 1px 3px 1px;
  background: linear-gradient(135deg, #C4882A 0%, #8B5E1A 55%, #A0703A 100%);
  transform-origin: center;
}

/* Опилки за курсором */
.sawdust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #C4882A;
  pointer-events: none;
  z-index: 9997;
}

/* Счётчик ударов */
#hammer-counter {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

#hammer-counter.counter--show {
  transform: translateX(-50%) translateY(0);
}

/* Гвоздь в месте клика */
.nail-mark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #888, #1a1a1a 60%, #000);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.15);
  transform: translate(-50%, -50%) scale(0);
  animation: nail-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes nail-in {
  0%   { transform: translate(-50%, -50%) scale(0); }
  60%  { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

ul {
  list-style: none;
}

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

/* ----------------------------------------------------------
   Container
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------
   Sections — general
   ---------------------------------------------------------- */
.section {
  padding: var(--section-py) 0;
  background-color: var(--white);
}

.section--alt {
  background-color: var(--bg-light);
}

/* ----------------------------------------------------------
   NAV
   ---------------------------------------------------------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;

  /* transparent by default — sits over hero video */
  background-color: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Scrolled state — added by JS */
#nav.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}

/* Logo */
.nav__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: color 0.35s ease;
}

#nav.scrolled .nav__logo {
  color: var(--text-dark);
}

/* Links — centred via auto margin */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto;     /* push CTA to the right */
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--white);
}

#nav.scrolled .nav__links a {
  color: var(--text-dark);
}

#nav.scrolled .nav__links a:hover {
  color: var(--accent);
}

/* CTA phone button */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav__cta:hover {
  background-color: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
}

#nav.scrolled .nav__cta {
  border-color: var(--accent);
  color: var(--accent);
}

#nav.scrolled .nav__cta:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Burger — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: background-color 0.35s ease, transform 0.3s ease, opacity 0.3s ease;
}

#nav.scrolled .nav__burger span {
  background-color: var(--text-dark);
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

#hero {
  position: relative;
  height: 100vh;
}

.hero__sticky {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parallax video — чуть выше viewport чтобы было куда двигаться */
#hero-video {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

/* Text content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__content h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;             /* elegant, not bold */
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.5px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 2px;
  margin-top: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hero__cta:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

/* ----------------------------------------------------------
   CONTACT
   ---------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__info h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 16px;
}

.contact__info p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact__icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact__detail a,
.contact__detail span {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

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

.contact__form {
  background: white;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  border-radius: 0;
  background: white;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
}

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

.form__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
#footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  color: white;
  margin-bottom: 16px;
}

.footer__brand p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer__links ul {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: white;
}

.footer__contact a,
.footer__contact span {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer__contact a:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------------------------
   RESPONSIVE — Mobile
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  /* Nav: hide links, show burger */
  .nav__links {
    display: none;
    /* Mobile menu will be shown via JS / class toggle */
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
    margin-left: auto;
  }

  /* Mobile nav open state */
  #nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    padding: 24px;
    gap: 20px;
    background-color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  #nav.nav--open .nav__links a {
    color: var(--text-dark);
    font-size: 15px;
  }

  /* Burger animation when open */
  #nav.nav--open .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #nav.nav--open .nav__burger span:nth-child(2) {
    opacity: 0;
  }
  #nav.nav--open .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero text */
  .hero__content h1 {
    font-size: 36px;
  }
}

/* ----------------------------------------------------------
   SECTION SHARED
   ---------------------------------------------------------- */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  color: var(--text-dark);
}

h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
}

/* ----------------------------------------------------------
   ABOUT
   ---------------------------------------------------------- */
.about-fullwidth {
  padding: var(--section-py) 0;
  margin-top: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  width: 100%;
  min-height: 520px;
  max-height: 680px;
}

.about__image {
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Показываем лицо/верх фигуры */
  object-position: center top;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: var(--white);
  overflow-y: auto;
}

.about__content h2 {
  font-size: 38px;
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about__content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 44px;
  color: var(--accent);
  display: block;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   SERVICES
   ---------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 40px;
  border: 1px solid #e8e8e8;
  background: var(--white);
}

.service-card--featured {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.service-card--featured p,
.service-card--featured h3 {
  color: var(--white);
}

.service-card--featured .service-card__price {
  color: rgba(255, 255, 255, 0.8);
}

.service-card--featured .service-card__price strong {
  color: var(--white);
}

.service-card__icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.service-card__list li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-family: var(--font-body);
}

.service-card__list li::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

.service-card--featured .service-card__list li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-card--featured .service-card__list li::before {
  color: rgba(255, 255, 255, 0.6);
}

.service-card__price {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.services__note {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   WHY US
   ---------------------------------------------------------- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.why-card {
  text-align: center;
  padding: 40px 24px;
}

.why-card__icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

.why-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* ----------------------------------------------------------
   RESPONSIVE — About / Services / Why Us
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: auto;
    max-height: none;
  }

  .about__image img {
    height: 300px;
  }

  .about__content {
    padding: 48px 24px;
  }

  .about__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .section-header h2,
  h2 {
    font-size: 32px;
  }
}

/* ----------------------------------------------------------
   PORTFOLIO
   ---------------------------------------------------------- */
#portfolio {
  overflow: hidden;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  aspect-ratio: 16 / 9;
  gap: 8px;
  width: 100%;
}


.portfolio__item {
  position: relative;
  overflow: hidden;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio__item:hover img {
  transform: scale(1.04);
}

.portfolio__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
}

.portfolio__cta-text {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
}

.portfolio__cta-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ----------------------------------------------------------
   LIGHTBOX
   ---------------------------------------------------------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#lightbox.lb--open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  animation: lb-fade-in 0.25s ease;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  animation: lb-zoom-in 0.25s ease;
}

@keyframes lb-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lb-img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,0.25);
}

.lb-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 4px;
  font-size: 32px;
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 4px;
  font-size: 32px;
}

.section--compact {
  padding: 56px 0;
}

/* ----------------------------------------------------------
   GOOGLE REVIEWS CAROUSEL
   ---------------------------------------------------------- */
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.reviews-score__num {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1;
  color: var(--text-dark);
}

.reviews-score__stars {
  color: #FBBC04;
  font-size: 20px;
  letter-spacing: 2px;
}

.reviews-score__meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

.reviews-google-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.reviews-all-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: #4285F4;
  text-decoration: none;
  border-bottom: 1px solid rgba(66,133,244,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.reviews-all-link:hover {
  border-color: #4285F4;
}

/* Track */
.reviews-track-wrap {
  position: relative;
  margin: 0 30px;
}

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  background: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  font-size: 28px;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.reviews-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.reviews-btn:disabled { opacity: 0.2; pointer-events: none; }
.reviews-btn--prev { left: -26px; }
.reviews-btn--next { right: -26px; }

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

/* Card */
.gcard {
  flex: 0 0 320px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gcard:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.gcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gcard__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.gcard__meta {
  flex: 1;
}

.gcard__meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.gcard__meta span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.gcard__glogo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gcard__stars {
  color: #FBBC04;
  font-size: 15px;
  letter-spacing: 1px;
}

.gcard__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  flex: 1;
}

.gcard__link {
  font-family: var(--font-body);
  font-size: 12px;
  color: #4285F4;
  text-decoration: none;
  margin-top: auto;
}

.gcard__link:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   SERVICE AREAS
   ---------------------------------------------------------- */
.areas__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.areas__list p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
}

.areas__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.areas__tags li {
  padding: 8px 18px;
  border: 1px solid #d0c8be;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
}

.areas__note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.areas__map iframe {
  display: block;
  width: 100%;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid #e5e5e5;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-dark);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__icon {
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: 20px;
}

.faq__item.active .faq__answer {
  display: block;
}

.faq__answer p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

/* ----------------------------------------------------------
   RESPONSIVE — Portfolio / Testimonials / Areas / FAQ
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 4 / 3;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .areas__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ----------------------------------------------------------
   SCROLL ANIMATIONS (driven by IntersectionObserver in JS)
   ---------------------------------------------------------- */

/* Fallback: если JS/observer не сработал — секции появляются через 1.5с */
@keyframes section-fallback {
  to { opacity: 1; transform: translateY(0); }
}

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: section-fallback 0.7s ease 1.5s forwards;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* Hero не анимируем — он всегда виден */
#hero {
  opacity: 1;
  transform: none;
  animation: none;
}
