/* ========== VARIABLES ========== */
:root {
  --brand-green: #0eb34c;
  --brand-green-dark: #0c9b42;
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --card-bg: #f7f7f7;
  --radius: 16px;
  --max-width: 1180px;
  --header-height: 72px;
  --gap: 24px;
  --font: "Roboto", Arial, sans-serif;
  --fast: .2s ease;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.25; }

/* ========== UTILS ========== */
.container { width: 90%; max-width: var(--max-width); margin-inline: auto; }
.section-title { font-size: 2rem; margin-bottom: 1.5rem; }
.section-subtitle { color: var(--muted); margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9em 2em; border-radius: var(--radius); font-weight: 500; transition: background var(--fast), color var(--fast); }
.btn--primary { background: var(--brand-green); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-green-dark); }
.btn:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

/* ========== HEADER ========== */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid #e5e5e5; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo img { height: 48px; width: 48px; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { font-weight: 500; color: var(--text); position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--brand-green); transition: width var(--fast); }
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.header__phone { font-weight: 500; white-space: nowrap; }
.burger { display: none; flex-direction: column; gap: 6px; width: 32px; }
.burger__line { height: 2px; background: var(--text); transition: transform var(--fast), opacity var(--fast); }
.header__panel { display: none; }

/* ========== HERO ========== */
.hero { position: relative; height: 70vh; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,0) 70%); }
.hero__content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero__logo { height: 86px; width: auto; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; letter-spacing: .02em; }
.hero__subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; opacity: .92; }
.hero__kicker { font-size: 1.25rem; margin-bottom: 1.25rem; opacity: .92; }


/* ========== DIRECTIONS / SERVICES ========== */
.directions, .services { padding: 4rem 0; }
.directions__grid, .services__grid { display: grid; gap: var(--gap); }
.directions__grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .directions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.services__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--fast); }
.card:hover img { transform: scale(1.05); }
.card__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%); color: #fff; }
.card__title { font-size: 1.25rem; margin-bottom: .25rem; }
.card__desc { font-size: .875rem; opacity: .8; }

/* ========== PARTNERS ========== */
.partners { padding: 4rem 0; background: var(--card-bg); }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--gap); }
.partner-card { text-align: center; }
.partner-card__img { height: 80px; background: #e5e5e5; border-radius: var(--radius); margin-bottom: .75rem; }
.partner-card__name { font-size: .875rem; color: var(--muted); }

/* ========== QUALITY ========== */
.quality { padding: 4rem 0; }
.quality__wrap { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: center; }
.quality__photo { position: relative; }
.quality__photo img { border-radius: var(--radius); }
.quality__label { position: absolute; bottom: 1rem; left: 1rem; background: rgba(0,0,0,.6); color: #fff; padding: .5rem 1rem; border-radius: 8px; font-size: .875rem; }
@media (max-width: 768px) { .quality__wrap { grid-template-columns: 1fr; } }

/* ========== LEAD FORM ========== */
.lead { padding: 4rem 0; background: var(--card-bg); }
.lead-form { display: grid; gap: 1.5rem; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field__label { font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.field__status { font-size: 1.05rem; line-height: 1; }
.field__input { width: 100%; padding: .75rem 1rem; border: 1px solid #ccc; border-radius: var(--radius); transition: border-color var(--fast); }
.field__input:focus-visible { border-color: var(--brand-green); outline: none; }
.field__error { font-size: .8125rem; color: #e41f1f; }

.lead-form__group { border: none; padding: 0; margin: 0; }
.lead-form__legend { font-weight: 500; margin-bottom: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.checkbox, .radio { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.checkbox input, .radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box, .radio__circle { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; transition: border-color var(--fast), background var(--fast); }
.radio__circle { border-radius: 50%; }
.checkbox input:checked + .checkbox__box { background: var(--brand-green); border-color: var(--brand-green); }
.radio input:checked + .radio__circle { border-color: var(--brand-green); box-shadow: inset 0 0 0 5px var(--brand-green); }

.lead-form__consents { display: grid; gap: .75rem; }
.lead-form__consents .checkbox { align-items: flex-start; gap: .75rem; }
.lead-form__consents .checkbox__label { flex: 1; min-width: 0; }
.checkbox__status { margin-left: auto; font-size: 1.05rem; line-height: 1; padding-top: .1rem; }

.lead-form__consents a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-form__consents a:hover,
.lead-form__consents a:focus-visible {
  color: var(--brand-green-dark);
}

.lead-form__submit { justify-self: start; }
.lead-form__submit:disabled {
  background: rgba(14,179,76,.35);
  cursor: not-allowed;
}
.lead-form__submit:disabled:hover,
.lead-form__submit:disabled:focus-visible {
  background: rgba(14,179,76,.35);
}

.lead-form__message { font-weight: 500; margin: 0; padding: 1rem 1.25rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.lead-form__message--success { background: rgba(14,179,76,.12); border: 1px solid rgba(14,179,76,.35); color: #0c9b42; }
.lead-form__message--error { background: rgba(228,31,31,.10); border: 1px solid rgba(228,31,31,.30); color: #b01212; }

/* ========== FOOTER ========== */
.footer { padding: 3rem 0 2rem; border-top: 1px solid #e5e5e5; font-size: .875rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer__title { font-size: 1rem; margin-bottom: 1rem; }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; }
.footer__social img { width: 24px; height: 24px; }
.footer__link { display: block; margin-bottom: .5rem; color: var(--muted); }
.footer__link:hover { color: var(--brand-green); }
.footer__list li { margin-bottom: .5rem; color: var(--muted); }
.footer__bottom { margin-top: 2rem; text-align: center; font-size: .8125rem; color: var(--muted); }

/* ========== COOKIE BANNER ========== */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 200; }
.cookie__body { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15); padding: 1rem 1.5rem; border-radius: var(--radius); }
.cookie__text { flex: 1 1 320px; font-size: .875rem; color: var(--muted); }
.cookie__btn { flex-shrink: 0; }
.cookie__text a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie__text a:hover,
.cookie__text a:focus-visible {
  color: var(--brand-green-dark);
}

/* ========== 404 ========== */
.not-found { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.not-found h1 { font-size: 6rem; margin-bottom: .25rem; color: var(--brand-green); }
.not-found p { margin-bottom: 2rem; color: var(--muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.nav--mobile { display: block; }
  .burger { display: flex; }
  .header__panel { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid #e5e5e5; padding: 1.5rem; box-shadow: 0 8px 12px rgba(0,0,0,.06); }
  .header__panel[hidden] { display: none; }
  .nav--mobile .nav__list { flex-direction: column; gap: 1rem; }
  .header__phone { display: none; }
  .header__phone--mobile { margin-top: 1.5rem; display: inline-block; }
  .lead-form__grid { grid-template-columns: 1fr; }
  .logo img { height: 48px; width: 48px; }
  .hero__logo { height: 72px; }
}
