/* ====================================================================
   С.К.Д-Развитие — минимализм, прохладная сине-серая гамма
   ==================================================================== */
:root {
  --ink: #1f2630;          /* тёплый почти-чёрный */
  --ink-2: #45505e;
  --muted: #8792a1;        /* тёплый серый */
  --line: #e6eaef;         /* мягкая линия */
  --line-2: #d9dfe7;
  --bg: #f7f9fb;           /* кремовый */
  --bg-soft: #eef2f6;      /* песочный */
  --bg-card: #ffffff;
  --accent: #5b7a99;       /* дымчатый сине-серый */
  --accent-2: #88a4bd;
  --accent-soft: #e6edf3;  /* мягкий бежевый тинт */
  --shadow-sm: 0 1px 2px rgba(31, 38, 48, .03);
  --shadow: 0 14px 40px rgba(31, 38, 48, .055);
  --shadow-lg: 0 24px 60px rgba(31, 38, 48, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; }

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--display); font-weight: 600; line-height: 1.18;
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.3px; color: var(--ink);
}
.section-desc { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 600px; font-weight: 400; }
.section-header.center { text-align: center; max-width: 700px; margin: 0 auto 72px; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }
.text-gradient { color: var(--accent); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 14px 28px; border-radius: 9px; border: 1px solid transparent;
  transition: .3s cubic-bezier(.2,.7,.3,1); white-space: nowrap;
}
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a6580; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: var(--bg-card); color: var(--ink); }
.btn-white:hover { background: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s, visibility .6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--ink); }
.preloader-inner span { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.preloader-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); position: relative; animation: pulse 1.4s ease-in-out infinite; }
.preloader-icon::after { content: "⚡"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:1 } 50% { transform: scale(1.08); opacity:.85 } }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: .35s; padding: 22px 0; }
.nav.scrolled { background: rgba(250, 248, 243, .85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.nav-container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.logo-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; background: var(--accent); color: #fff; display: grid; place-items: center; }
.logo-icon svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.logo-sub { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.nav.transparent .logo-name { color: #fff; }
.nav.transparent .logo-sub { color: rgba(255,255,255,.65); }
.nav.transparent .logo-icon { background: rgba(255,255,255,.15); backdrop-filter: blur(6px); }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-link { padding: 9px 16px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: .2s; }
.nav.transparent .nav-link { color: rgba(255,255,255,.85); }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav.transparent .nav-link:hover, .nav.transparent .nav-link.active { color: #fff; }

.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 18px; border-radius: 9px; border: 1px solid var(--line-2); transition: .25s; }
.nav-phone svg { color: var(--accent); }
.nav-phone:hover { border-color: var(--accent); }
.nav.transparent .nav-phone { color: #fff; border-color: rgba(255,255,255,.3); }
.nav.transparent .nav-phone svg { color: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav.transparent .nav-burger span { background: #fff; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(31,38,48,.86) 0%, rgba(31,38,48,.62) 45%, rgba(31,38,48,.28) 100%); }
.hero-content { position: relative; padding: 150px 0 130px; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 50px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); margin-bottom: 30px; letter-spacing: .3px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: blink 2.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.12; letter-spacing: -1px; margin-bottom: 26px; }
.hero-desc { font-size: 19px; color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 42px; font-weight: 300; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 70px; }
.hero-stats { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num, .hero-stat-plus { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; color: #fff; display: inline; }
.hero-stat-plus { color: var(--accent-2); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 10px; font-weight: 400; }
.hero-stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.18); }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.scroll-mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 3px; height: 7px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0%{opacity:1; transform:translateY(0)} 100%{opacity:0; transform:translateY(12px)} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about-images { position: relative; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-main { aspect-ratio: 4/5; }
.about-img-secondary { position: absolute; bottom: -36px; right: -36px; width: 52%; aspect-ratio: 1; border: 8px solid var(--bg); border-radius: 18px; }
.about-experience-badge { position: absolute; top: 28px; left: -26px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); padding: 18px 22px; text-align: center; }
.experience-number { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; }
.experience-text { font-size: 12px; opacity: .85; }
.about-text { color: var(--ink-2); font-size: 16px; margin-top: 20px; font-weight: 400; }
.about-text strong { color: var(--ink); font-weight: 600; }
.about-features { display: grid; gap: 20px; margin-top: 36px; }
.about-feature { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.about-feature strong { display: block; font-size: 16px; font-weight: 600; }
.about-feature span { color: var(--muted); font-size: 14px; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; transition: .35s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.service-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.service-badge { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; background: rgba(255,255,255,.12); color: #fff; }
.service-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 24px; }
.service-card.featured .service-icon { background: rgba(255,255,255,.1); color: var(--accent-2); }
.service-icon svg { width: 32px; height: 32px; }
.service-title { font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.service-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.service-card.featured .service-desc { color: rgba(255,255,255,.65); }
.service-list { display: grid; gap: 10px; margin-bottom: 24px; }
.service-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.service-card.featured .service-list li { color: rgba(255,255,255,.8); }
.service-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.service-card.featured .service-list li::before { background: var(--accent-2); }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); font-size: 14.5px; }
.service-card.featured .service-link { color: var(--accent-2); }
.service-link:hover svg { transform: translateX(4px); }
.service-link svg { transition: transform .2s; }

/* ---------- Projects / Works ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .35s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-image { aspect-ratio: 16/11; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: .6s ease; filter: saturate(.9); }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-info { padding: 26px; }
.project-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 50px; margin-bottom: 16px; }
.project-info h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.project-info p { color: var(--muted); font-size: 14px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-meta span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); padding: 5px 11px; border-radius: 7px; }
.projects-more { text-align: center; margin-top: 56px; }

/* ---------- Process ---------- */
.process-timeline { position: relative; display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
.process-line { position: absolute; left: 27px; top: 24px; bottom: 24px; width: 1px; background: var(--line-2); }
.process-step { position: relative; display: flex; gap: 28px; align-items: flex-start; }
.step-number { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; z-index: 1; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 19px; transition: .3s; }
.process-step:hover .step-number { background: var(--accent); color: #fff; }
.step-content { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; flex: 1; transition: .3s; }
.process-step:hover .step-content { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.step-content h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.step-content p { color: var(--muted); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .6s; filter: saturate(.9); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }
.gallery-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; background: linear-gradient(transparent 55%, rgba(31,38,48,.7)); opacity: 0; transition: .35s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 500; font-size: 15px; }

/* ---------- Advantages ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card { padding: 36px 30px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); transition: .35s; }
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.advantage-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.advantage-icon svg { width: 30px; height: 30px; }
.advantage-card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.advantage-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-section { padding: 60px 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 22px; padding: 70px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-content { position: relative; z-index: 1; max-width: 620px; }
.cta-content h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin-bottom: 14px; }
.cta-content p { color: rgba(255,255,255,.72); font-size: 17px; margin-bottom: 32px; font-weight: 300; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-decoration { position: absolute; right: -80px; top: -80px; bottom: -80px; width: 360px; }
.cta-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(136,164,189,.3); }
.cta-circle-1 { inset: 0; }
.cta-circle-2 { inset: 55px; }
.cta-circle-3 { inset: 110px; background: radial-gradient(circle, rgba(91,122,153,.25), transparent 70%); border: 0; }

/* ---------- Reviews ---------- */
.reviews-slider { position: relative; }
.reviews-track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.review-card { flex: 0 0 calc((100% - 48px) / 3); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.review-stars { display: flex; gap: 4px; color: var(--accent); margin-bottom: 20px; }
.review-stars svg { width: 16px; height: 16px; }
.review-text { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; min-height: 150px; font-weight: 400; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.review-author strong { display: block; font-size: 15px; font-weight: 600; }
.review-author span { color: var(--muted); font-size: 13px; }
.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; }
.review-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: .25s; }
.review-btn:hover { border-color: var(--accent); color: var(--accent); }
.reviews-dots { display: flex; gap: 8px; }
.reviews-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; transition: .25s; }
.reviews-dots button.active { background: var(--accent); width: 26px; border-radius: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-desc { color: var(--muted); font-size: 16px; margin: 18px 0 36px; }
.contact-items { display: grid; gap: 24px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.contact-item span, .contact-item a { display: block; color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }
.contact-form-wrapper { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.contact-form h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 26px; }
.form-group { position: relative; margin-bottom: 18px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--bg); transition: .25s; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.form-group label { position: absolute; left: 12px; top: -8px; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); background: var(--bg-card); padding: 0 6px; opacity: 0; transition: .2s; }
.form-group input:focus + label, .form-group textarea:focus + label, .form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label { opacity: 1; }
.form-file { margin-bottom: 18px; }
.form-file input[type="file"] { display: none; }
.form-file label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 14px; transition: .2s; background: var(--bg); }
.form-file label:hover { border-color: var(--accent); color: var(--accent); }
.form-file label svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-file .file-names { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; word-break: break-word; }
.form-privacy { font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-privacy a { color: var(--accent); }
.form-success { display: none; color: #6b8e5a; font-weight: 600; margin-top: 14px; text-align: center; }

/* ---------- Map ---------- */
.map-section { height: 400px; position: relative; overflow: hidden; }
.map-placeholder { position: absolute; inset: 0; background: var(--ink); }
.map-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.map-cell { border: 1px solid rgba(255,255,255,.04); }
.map-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; }
.map-overlay span { font-weight: 500; font-size: 17px; }
.map-pin { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(91,122,153,.15); animation: pulse 2.4s infinite; }
.map-pin svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .logo-name { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,.55); }
.footer .logo-icon { background: rgba(255,255,255,.1); }
.footer-desc { margin: 22px 0; font-size: 14.5px; max-width: 340px; line-height: 1.7; }
.footer-socials { display: flex; gap: 12px; }
.social-link { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: .25s; }
.social-link svg { width: 18px; height: 18px; fill: #fff; }
.social-link:hover { background: var(--accent); }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px; margin-bottom: 20px; }
.footer-links ul { display: grid; gap: 12px; }
.footer-links a, .footer-contact a, .footer-contact p { font-size: 14px; transition: .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact a, .footer-contact p { display: block; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.45); }
.admin-foot-link { color: rgba(255,255,255,.4); transition: .2s; }
.admin-foot-link:hover { color: var(--accent-2); }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; bottom: 32px; right: 32px; z-index: 80; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .35s; }
.back-to-top:hover { background: #4a6580; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--ink); color: #fff; padding: 170px 0 80px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(91,122,153,.2), transparent 70%); }
.page-head .breadcrumbs { color: rgba(255,255,255,.55); font-size: 13.5px; margin-bottom: 16px; position: relative; letter-spacing: .3px; }
.page-head .breadcrumbs a:hover { color: #fff; }
.page-head h1 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; position: relative; letter-spacing: -.5px; }
.page-head .lead { color: rgba(255,255,255,.72); font-size: 18px; max-width: 700px; margin-top: 18px; position: relative; font-weight: 300; }
.page-head .lead a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Price tables ---------- */
.price-block { margin-bottom: 48px; }
.price-block-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.price-block-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.price-block-icon svg { width: 26px; height: 26px; }
.price-block h3 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.price-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th { text-align: left; padding: 16px 24px; background: var(--bg-soft); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.price-table td { padding: 15px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.price-table tr:hover td { background: var(--bg-soft); }
.price-table td:last-child { text-align: right; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 370px; gap: 32px; align-items: start; }
.calc-cats { display: flex; flex-direction: column; gap: 14px; }
.calc-cat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-cat-head { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px; user-select: none; transition: .2s; }
.calc-cat-head:hover { background: var(--bg-soft); }
.calc-cat-head .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.calc-cat-head .arrow { margin-left: auto; transition: .3s; color: var(--muted); }
.calc-cat.open .calc-cat-head .arrow { transform: rotate(180deg); }
.calc-cat-body { display: none; padding: 0 24px 14px; }
.calc-cat.open .calc-cat-body { display: block; }
.calc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.calc-row .r-name { font-size: 15px; font-weight: 400; }
.calc-row .r-price { color: var(--muted); font-size: 13px; }
.calc-row .r-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 19px; cursor: pointer; line-height: 1; transition: .15s; }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-input { width: 60px; height: 38px; text-align: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; font-family: var(--font); }
.qty-input:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.calc-row .r-sum { width: 100px; text-align: right; font-weight: 600; color: var(--ink); }
.calc-summary { position: sticky; top: 100px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; }
.calc-summary h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.sum-list { max-height: 340px; overflow-y: auto; margin-bottom: 18px; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sum-item .si-name { color: rgba(255,255,255,.55); }
.sum-item .si-name b { color: #fff; display: block; font-weight: 500; }
.sum-item > span:last-child { font-weight: 600; white-space: nowrap; }
.sum-empty { color: rgba(255,255,255,.5); font-size: 14px; padding: 36px 0; text-align: center; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.sum-total span { color: rgba(255,255,255,.65); }
.sum-total b { font-family: var(--display); font-size: 30px; color: var(--accent-2); font-weight: 600; }
.sum-note { color: rgba(255,255,255,.45); font-size: 12.5px; margin: 8px 0 20px; }
.calc-summary .btn { width: 100%; }
.calc-summary .btn + .btn { margin-top: 10px; }
.calc-summary .btn-outline { color: #fff; border-color: rgba(255,255,255,.25); }
.calc-summary .btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
@media (max-width: 980px) { .calc-wrap { grid-template-columns: 1fr; } .calc-summary { position: static; } }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr auto; } .calc-row .r-sum { grid-column: 1 / -1; text-align: left; } }

/* ---------- Admin ---------- */
.btn-ghost-dark { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn-ghost-dark:hover { border-color: #b14545; color: #b14545; }
.admin-login { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 40px 20px; }
.admin-login-card { width: 100%; max-width: 400px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.admin-login-card h1 { font-family: var(--display); font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.admin-login-card form { margin-top: 26px; text-align: left; }
.admin-muted { color: var(--muted); font-size: 14px; }
.admin-error { display: none; color: #b14545; font-size: 14px; margin-top: 12px; text-align: center; }
.admin-panel { padding: 50px 0 90px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-head h1 { font-family: var(--display); font-size: clamp(26px,3.4vw,38px); font-weight: 600; margin-bottom: 8px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.admin-toolbar .btn { cursor: pointer; }
.admin-status { font-size: 14px; font-weight: 600; min-height: 20px; transition: opacity .4s; opacity: 0; margin-bottom: 18px; }
.admin-cat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; }
.admin-cat h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:first-child { width: 55%; }
.admin-price, .admin-unit { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); }
.admin-price { max-width: 120px; text-align: right; }
.admin-unit { max-width: 90px; }
.admin-price:focus, .admin-unit:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.admin-from { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.admin-from input { width: 16px; height: 16px; accent-color: var(--accent); }
/* tabs */
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.admin-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
/* row controls */
.admin-name { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); }
.admin-name:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.admin-del { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; }
.admin-del:hover { border-color: #b14545; color: #b14545; }
.admin-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-cat-head .admin-name { font-family: var(--display); font-size: 18px; font-weight: 600; }
.admin-add-row { margin-top: 12px; background: none; border: 1px dashed var(--line-2); border-radius: 8px; padding: 9px 14px; color: var(--accent); font-family: var(--font); font-weight: 600; font-size: 14px; cursor: pointer; }
.admin-add-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.admin-table td:last-child { width: 40px; }
/* works editor */
.works-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.admin-work { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.admin-work-imgwrap { display: flex; flex-direction: column; gap: 8px; }
.admin-work-img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.admin-work-fields { display: flex; flex-direction: column; gap: 10px; }
.admin-work-fields textarea { resize: vertical; min-height: 60px; }
.admin-work-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-upload { font-size: 12.5px; text-align: center; padding: 8px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--accent); cursor: pointer; font-weight: 600; }
.admin-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 760px) { .works-editor { grid-template-columns: 1fr; } .admin-work { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .admin-table td:first-child { width: auto; }
  .admin-head { flex-direction: column; }
}

/* ---------- Scroll animations ---------- */
[data-animate] { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
[data-animate="fade-up"] { transform: translateY(34px); }
[data-animate="fade-right"] { transform: translateX(-34px); }
[data-animate="fade-left"] { transform: translateX(34px); }
[data-animate].in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .projects-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 880px) {
  .section { padding: 84px 0; }
  .nav-links { position: fixed; inset: 76px 16px auto 16px; flex-direction: column; gap: 2px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { color: var(--ink) !important; padding: 13px; }
  .nav-burger { display: flex; }
  .nav-phone { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 72px; }
  .about-img-secondary { display: none; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .cta-decoration { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid, .projects-grid, .advantages-grid, .gallery-grid { grid-template-columns: 1fr; }
  .review-card { flex-basis: 100%; }
  /* HERO на мобиле: не наезжать на шапку сверху и на скролл снизу */
  .hero { min-height: auto; align-items: flex-start; }
  .hero .hero-content { padding: 116px 20px 64px; }
  .hero-badge { font-size: 12px; padding: 8px 14px; margin-bottom: 20px; }
  .hero-title { font-size: 38px; margin-bottom: 18px; }
  .hero-desc { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { margin-bottom: 40px; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 8px 22px; }
  .hero-stat-divider { display: none; }
  .hero-stat-num, .hero-stat-plus { font-size: 32px; }
  .hero-scroll { display: none; }
  .gallery-item-wide { grid-column: auto; }
  .contact-form-wrapper { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .container { padding: 0 20px; }
  /* секции чуть компактнее */
  .section { padding: 64px 0; }
  .section-header.center { margin-bottom: 44px; }
  /* about: бейдж опыта не вылезает */
  .about-experience-badge { left: auto; right: 16px; top: 16px; padding: 12px 16px; }
  .experience-number { font-size: 26px; }
  /* page-head на мобиле ниже шапки */
  .page-head { padding: 120px 0 48px; }
  /* CTA */
  .cta-card { padding: 36px 24px; border-radius: 18px; }
  .cta-actions .btn { width: 100%; }
}
