:root {
  --bg-dark: #1f1f1f;
  --bg-blue: #2d8cff;
  --text-dark: #101316;
  --text-light: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --container: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text-dark); background: var(--surface-2); }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(16,19,22,.75); color: var(--text-light); backdrop-filter: saturate(1.15) blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; height: 80px; }
.brand { font-weight: 800; letter-spacing: .3px; font-size: clamp(20px, 2.4vw, 24px); }
.nav { display: flex; justify-content: center; align-items: center; gap: 20px; }
.nav a { padding: 14px 10px; color: var(--text-light); opacity: .92; font-size: clamp(14px, 1.8vw, 16px); border-radius: 10px; transition: background .15s ease, opacity .15s ease; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; }

.section { padding: 80px 0; background: var(--surface); }
.section { scroll-margin-top: 90px; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-blue { background: linear-gradient(135deg, var(--bg-blue), var(--accent-2)); color: var(--text-light); }

h2 { margin: 0 0 28px; font-size: clamp(28px, 3vw, 36px); text-align: center; letter-spacing: .3px; }
h3 { margin: 24px 0 12px; font-size: clamp(20px, 2.2vw, 24px); }
.lead { max-width: 840px; margin: 0 auto; text-align: center; font-size: clamp(17px, 1.9vw, 19px); line-height: 1.8; opacity: 1; letter-spacing: .1px; }
.cta-wrap { margin-top: 24px; }

.about-list { list-style: none; margin: 12px auto 0; padding: 0; max-width: 840px; }
.about-list li { position: relative; padding-left: 22px; margin: 8px 0; text-align: left; }
.section-dark .about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); }
.section:not(.section-dark) .about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); }

.wide-image { width: calc(100% - 48px); max-width: var(--container); height: 420px; margin: 28px auto 0; border-radius: var(--radius); background: linear-gradient(135deg, #222 0%, #444 100%); box-shadow: 0 20px 40px rgba(0,0,0,.35); overflow: hidden; }
.wide-image img { width: 100%; height: auto; display: block; }

.services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.service { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; }
.section-dark .service { background: #1f1f1f; border-color: #3a3a3a; }
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.1); border-color: #d1d5db; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; margin-bottom: 12px; }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service h3 { margin: 0 0 8px; }
.service p { color: var(--muted); line-height: 1.7; }
.service ul { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); }
.service ul li { padding-left: 22px; position: relative; margin: 8px 0; }
.service ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); }
.service .btn-outline { margin-top: 14px; background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.service .btn-outline:hover { background: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 24px; }
.card { background: #fff; color: var(--text-dark); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease; }
.section-dark .card { background: #222; color: var(--text-light); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.card-image { height: 200px; background: radial-gradient(100% 100% at 0% 0%, #cbd5e1 0%, #e5e7eb 60%, #f3f4f6 100%); background-size: cover; background-position: center; }
.card-title { font-weight: 600; padding: 14px 16px 8px; }
.card-text { padding: 0 16px 16px; opacity: .9; }

.carousel { position: relative; width: calc(100% - 48px); max-width: var(--container); margin: 24px auto 0; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 420px; background: #111; transition: transform .45s ease; will-change: transform; }
.carousel-slide { width: 100%; height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 95vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
body.modal-open { overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .15s ease; }
.social:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social.tg { background: linear-gradient(135deg,#2aabee,#229ed9); }
.social.wa { background: linear-gradient(135deg,#25d366,#1ebe5d); }
.social.vk { background: linear-gradient(135deg,#4c75a3,#3a5f85); }
.social.avito { background: #ffffff; color: #111; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; border-radius: 12px; }
/* Ensure intl-tel-input container scales on mobile */
.iti { width: 100%; }

.features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.feature { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.feature h3 { grid-column: 2; margin: 0 0 6px; }
.feature p { grid-column: 2; color: var(--muted); line-height: 1.6; }
.feature-icon { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 34px; }

.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,.2); }
.section:not(.section-dark) .accordion-item { border-bottom: 1px solid #ddd; }
.accordion-btn { width: 100%; background: transparent; border: 0; text-align: left; padding: 18px; color: inherit; font-size: 18px; display: flex; justify-content: space-between; }
.accordion-btn::after { content: "+"; opacity: .8; }
.accordion-item.open .accordion-btn::after { content: "−"; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 16px; opacity: .9; }
.accordion-item.open .accordion-content { max-height: 180px; padding-bottom: 16px; }

.form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form label { font-weight: 600; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; background: #fff; }
.form input:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.15); outline: none; }
.btn { display: inline-block; padding: 12px 18px; background: var(--accent); color: #fff; border: 0; border-radius: 10px; font-size: 16px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(37,99,235,.3); }
.btn-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 26px rgba(124,58,237,.35); }
.form-msg { margin-top: 12px; min-height: 18px; }

.site-footer { background: #0f1215; color: #a3a3a3; padding: 28px 0; }
.footer-text { text-align: center; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; top: 80px; left: 0; right: 0; background: rgba(16,19,22,.95); backdrop-filter: blur(8px); padding: 12px 24px; z-index: 30; }
  .nav.open { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .nav a { padding: 12px 8px; }
  .services { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .carousel-track { height: 320px; }
}

@media (max-width: 640px) {
  .header-inner { gap: 16px; height: 72px; }
  .brand { font-size: 20px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .lead { font-size: 16px; line-height: 1.7; }
  .wide-image { height: 240px; }
  .services { gap: 18px; }
  .service { padding: 18px; }
  .service-icon { width: 48px; height: 48px; }
  .service-icon svg { width: 24px; height: 24px; }
  .social { width: 36px; height: 36px; }
  .map-wrap iframe { height: 220px; }
  .feature { grid-template-columns: 56px 1fr; }
  .feature-icon { width: 56px; height: 56px; font-size: 28px; }
  .accordion-btn { padding: 16px; font-size: 17px; }
  .carousel-track { height: 240px; }
}
