/* ===== КВАДУ — kvadu.pro ===== */
:root {
  --navy-900: #0b1726;
  --navy-800: #101f33;
  --navy-700: #16283f;
  --navy-600: #1f3550;
  --ink: #1c2733;
  --text: #33414f;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f9fc;
  --white: #ffffff;
  --accent: #c9a15c;
  --accent-dark: #a87f3d;
  --accent-soft: rgba(201, 161, 92, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 23, 38, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 23, 38, 0.16);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn:hover {
  background: #d8b273;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 161, 92, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.btn--small {
  padding: 10px 22px;
  font-size: 14px;
}

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.header--scrolled {
  background: rgba(11, 23, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  height: 64px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--navy-900);
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.logo__sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__link:hover, .nav__link--active { color: var(--white); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.jpg") center / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 23, 38, 0.93) 20%, rgba(16, 31, 51, 0.78) 55%, rgba(16, 31, 51, 0.45) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--white);
  transition: color 0.2s ease;
}
.hero__phone:hover { color: var(--accent); }
.hero__phone svg { color: var(--accent); flex-shrink: 0; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #7ee2a8;
  background: rgba(46, 160, 103, 0.18);
  border: 1px solid rgba(126, 226, 168, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
}
.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  z-index: 1;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Секции ===== */
.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--bg); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
  padding: 5px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.section-head__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section-head__text { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== О нас ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.about__text p + p { margin-top: 16px; }
.about__text strong { color: var(--ink); }
.about__list { margin-top: 24px; display: grid; gap: 12px; }
.about__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink);
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87f3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid rgba(201, 161, 92, 0.4);
}
.about__card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.about__card-name { font-size: 22px; font-weight: 800; }
.about__card-role { color: var(--accent); font-weight: 600; margin: 4px 0 22px; }
.about__card-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.about__card-link:hover { color: var(--accent); padding-left: 6px; }

/* ===== Услуги ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--navy-900);
}
.service-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-card__text { color: var(--muted); margin-bottom: 20px; }
.service-card__link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card__link::after {
  content: "→";
  transition: transform 0.25s ease;
}
.service-card__link:hover::after { transform: translateX(5px); }

/* ===== Проекты ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card__imgwrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-700);
}
.project-card__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.project-card:hover .project-card__imgwrap img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.project-card__percent {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.project-card__caption {
  padding: 20px 24px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

/* ===== Преимущества ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.adv-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.adv-item__num {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 12px;
}
.adv-item__num span { color: var(--accent-dark); }
.adv-item__num--text { color: var(--accent-dark); }
.adv-item__text { color: var(--muted); font-weight: 600; }

/* ===== CTA ===== */
.cta__box {
  background: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__box::before, .cta__box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 161, 92, 0.14);
}
.cta__box::before { width: 340px; height: 340px; top: -160px; right: -120px; }
.cta__box::after { width: 240px; height: 240px; bottom: -140px; left: -90px; }
.cta__title {
  position: relative;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.cta__text {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 36px;
}
.cta__contacts {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cta__contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 16px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.cta__contact svg { color: var(--accent); flex-shrink: 0; }
.cta__contact:hover {
  background: rgba(201, 161, 92, 0.18);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ===== Контакты ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-item__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.contact-item__value {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.contact-item__value + .contact-item__value { margin-top: 6px; }
.contact-item__link { transition: color 0.2s ease; }
.contact-item__link:hover { color: var(--accent-dark); }

/* ===== Подвал ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.14em;
}
.footer__tag { font-size: 13px; }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
.footer__contacts a { transition: color 0.2s ease; }
.footer__contacts a:hover { color: var(--accent); }
.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ===== Анимации появления ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .advantages__grid, .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__card { position: static; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(11, 23, 38, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav--open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 22px; }
  .nav__cta { margin: 12px 0 0; }
  .burger { display: flex; }

  .services__grid, .projects__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 520px) {
  .container { width: min(1160px, 100% - 36px); }
  .advantages__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn { width: 100%; }
  .hero__buttons .btn { width: auto; flex: 1 1 auto; }
  .cta__contact { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; }
}
