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

:root {
  --green: #1e3d30;
  --green-hover: #2a5240;
  --graphite: #1c1c1a;
  --orange: #c85a1a;
  --bg: #fafaf9;
  --bg2: #f3f2f0;
  --muted: #6b6b68;
  --border: #e4e3e0;
  --white: #ffffff;
  --font: 'Montserrat', sans-serif;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--graphite);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header-nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active { color: var(--green); background: var(--bg2); }

.burger {
  display: none;
  background: none; border: none;
  cursor: pointer; font-size: 20px;
  color: var(--graphite); padding: 6px; line-height: 1;
}

.logo { flex-shrink: 0; line-height: 0; }
.logo-img {
  height: 52px; width: auto;
  display: block; object-fit: contain;
}

.header-right {
  display: flex; align-items: center;
  gap: 16px; margin-left: auto; flex-shrink: 0;
}

.header-contact {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}

.contact-row {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}

.contact-hint {
  margin-right: 20px;
  display: flex; align-items: center; gap: 4px; justify-content: flex-end;
  white-space: nowrap;
  opacity: 0; transform: translateY(-4px);
  animation: hintAppear 1s cubic-bezier(.22,1,.36,1) 1.2s forwards;
}

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

.contact-arrow {
  font-size: 13px; font-weight: 900; color: var(--orange);
  animation: arrowBounce 1.4s ease-in-out 2.2s infinite;
  display: inline-block; line-height: 1; margin-right: 7px;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.contact-label {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.contact-icons { display: flex; align-items: center; gap: 6px; }

.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.contact-icon:hover { transform: translateY(-2px); }
.contact-icon-tg:hover  { border-color: #2AABEE; color: #2AABEE; background: #e8f6fe; }
.contact-icon-max:hover { border-color: var(--green); color: var(--green); background: #e8f2ec; }

.header-phone {
  font-size: 13px; font-weight: 600; color: var(--graphite);
  text-decoration: none; letter-spacing: .02em; white-space: nowrap; line-height: 1;
}
.header-phone:hover { color: var(--green); }

.btn-write {
  background: var(--green); color: var(--white);
  border: none; padding: 9px 20px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius);
  white-space: nowrap; transition: background .2s; text-decoration: none;
}
.btn-write:hover { background: var(--green-hover); }

/* ── NAV DRAWER ── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(28,28,26,.6); opacity: 0;
  pointer-events: none; transition: opacity .25s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 100%;
  background: var(--white); z-index: 101;
  padding: 80px 40px 40px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }

.nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--graphite);
}

.nav-drawer a {
  display: block; padding: 14px 0;
  font-size: 15px; font-weight: 600;
  color: var(--graphite); text-decoration: none;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); transition: color .15s;
}
.nav-drawer a:hover { color: var(--green); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,28,26,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white); border-radius: 8px; padding: 48px;
  width: 100%; max-width: 480px; position: relative;
  transform: translateY(24px); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--muted); line-height: 1;
}
.modal-close:hover { color: var(--graphite); }

.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--graphite); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  font-family: var(--font); font-size: 14px;
  color: var(--graphite); background: var(--bg);
  outline: none; transition: border-color .2s; resize: none;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--green); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: #b0b0aa; }

.btn-primary {
  display: inline-block; background: var(--green); color: var(--white);
  border: none; padding: 16px 36px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; border-radius: var(--radius);
  letter-spacing: .04em; transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.modal .btn-primary { width: 100%; text-align: center; margin-top: 8px; font-size: 15px; }

.form-policy { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.4; }
.form-policy a { color: var(--green); text-decoration: none; }

.modal-success { display: none; text-align: center; padding: 16px 0; }
.modal-success .check { font-size: 48px; margin-bottom: 16px; }
.modal-success h3 { font-size: 22px; margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: var(--muted); }

/* ── IMG PLACEHOLDER ── */
.img-placeholder {
  width: 100%; height: 100%;
  position: relative; overflow: hidden; background: #e0ddd8;
}
.img-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.img-placeholder span {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: monospace; font-size: 11px; color: #999; white-space: nowrap;
  background: rgba(255,255,255,.7); padding: 2px 8px; border-radius: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--graphite); color: rgba(255,255,255,.7);
  padding: 24px 80px 20px;
}

.footer-inner {
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 16px; flex-wrap: wrap;
}

.footer-logo {
  font-size: 16px; font-weight: 800; color: var(--white);
  letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0;
}

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 2px 12px; flex: 1;
}

.footer-nav a {
  font-size: 12px; color: rgba(255,255,255,.55);
  text-decoration: none; white-space: nowrap;
  transition: color .15s; padding: 2px 0;
}
.footer-nav a:hover { color: var(--white); }

.footer-contacts {
  display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}

.footer-contacts a {
  font-size: 12px; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .15s;
}
.footer-contacts a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.3); gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .09s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .27s; }
.reveal-delay-4 { transition-delay: .36s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1280px) {
  header { padding: 0 32px; }
  .footer-inner { gap: 24px; }
}

@media (max-width: 1024px) {
  .header-nav a { font-size: 11px; padding: 6px 7px; }
  footer { padding: 20px 40px 16px; }
}

@media (max-width: 768px) {
  header { padding: 0 20px; }
  .logo-img { height: 38px; }
  .header-nav { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; text-align: center; }
  .header-right { gap: 10px; }
  .header-phone { display: none; }
  .contact-label { display: none; }
  .contact-arrow { display: none; }
  .contact-hint { display: none; }
  .contact-icon { width: 32px; height: 32px; }
  footer { padding: 20px 20px 16px; }
  .footer-inner { gap: 20px; }
  .footer-nav { gap: 2px 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom div { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-contacts { flex-direction: row; gap: 12px; }
}

@media (max-width: 360px) {
  header { padding: 0 12px; }
  .logo-img { height: 32px; }
  .modal { padding: 24px 16px; }
  .modal h3 { font-size: 18px; }
  .btn-primary { padding: 14px 24px; font-size: 13px; }
  .footer-contacts { flex-direction: column; gap: 4px; }
  .nav-drawer { width: 100%; }
}
