/* ============================================================
   Ибраева Кыял — сайт-визитка
   Переменные, базовые стили, секции, адаптив, анимации
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #5b6472;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-soft: #eef0fe;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --line: #e6e8ef;
  --white: #ffffff;

  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .68, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, .45);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Section head ---------- */
.section__head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section__head--center { margin-inline: auto; text-align: center; }

.section__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  flex-shrink: 0;
}
.logo__mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 5px;
  background: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { transform: scaleX(1); }

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: calc(var(--header-h) + 72px) 0 96px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(99, 102, 241, .12), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(139, 92, 246, .08), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, .06); }
}

.hero__title {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.accent-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero__stats {
  display: flex;
  gap: 48px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat + .hero__stat { position: relative; }
.hero__stat + .hero__stat::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--line);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hero__stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* Hero visual */
.hero__visual { position: relative; }

.hero__card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 240px at 80% 0%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(260px 200px at 10% 100%, rgba(139, 92, 246, .28), transparent 55%);
}
.hero__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
}
.hero__card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
}
.hero__card-role {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.hero__portrait {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #2b3550, #151b2e);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero__portrait::before {
  content: '';
  position: absolute;
  width: 82%;
  height: 82%;
  left: 50%;
  bottom: -18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b5563, #1f2937 60%, #111827);
}
.hero__portrait::after {
  content: '';
  position: absolute;
  width: 88%;
  height: 46%;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #334155, #1e293b 70%);
}

.hero__card-tags {
  display: flex;
  gap: 8px;
  position: relative;
  margin-top: 18px;
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero__floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero__floating strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.hero__floating small {
  font-size: 12.5px;
  color: var(--muted);
}
.hero__floating-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.hero__floating-icon--alt {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}
.hero__floating--top { top: 42px; right: -28px; animation-delay: .4s; }
.hero__floating--bottom { bottom: 66px; left: -34px; animation-delay: 1.2s; }

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

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.about__media { position: relative; }
.about__photo {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(240px 160px at 75% 8%, rgba(99, 102, 241, .35), transparent 60%),
    linear-gradient(170deg, #303b56, #141a2c);
  position: relative;
}
.about__photo::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 78%;
  left: 50%;
  bottom: -14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b5563, #1f2937 60%, #111827);
}
.about__photo::after {
  content: '';
  position: absolute;
  width: 84%;
  height: 44%;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #334155, #1e293b 70%);
}

.about__exp {
  position: absolute;
  bottom: -26px;
  right: 28px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.about__exp strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}
.about__exp span {
  font-size: 13px;
  color: var(--muted);
}

.about__content h3 {
  font-size: 24px;
  margin-bottom: 18px;
}
.about__content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.about__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  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='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.fact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.fact__num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fact__label {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  transform: rotate(-6deg);
}

.service-card h3 { font-size: 20px; }
.service-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 4px;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project { display: flex; flex-direction: column; }

.project__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.06); }

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .62));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.project:hover .project__overlay { opacity: 1; }
.project__overlay .btn { transform: translateY(12px); transition: transform .35s var(--ease), box-shadow .25s var(--ease); }
.project:hover .project__overlay .btn { transform: translateY(0); }

.project__info { padding: 20px 4px 0; }
.project__info h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.project__info p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}
.project__result {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ============================================================
   Advantages
   ============================================================ */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.advantage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.advantage:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.advantage:hover::before { transform: scaleX(1); }

.advantage__num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: .06em;
}
.advantage h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.advantage p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial__stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}
.testimonial__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  flex-grow: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial__author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.testimonial__author span {
  font-size: 13.5px;
  color: var(--muted);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(140deg, #475569, #1e293b);
  position: relative;
}
.testimonial__avatar::before {
  content: '';
  position: absolute;
  width: 44%;
  height: 44%;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(148, 163, 184, .85);
}
.testimonial__avatar::after {
  content: '';
  position: absolute;
  width: 64%;
  height: 34%;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: rgba(148, 163, 184, .7);
}
.testimonial__avatar--2 { background: linear-gradient(140deg, #4c5b8a, #1a2542); }
.testimonial__avatar--3 { background: linear-gradient(140deg, #7c4c6a, #2b1220); }
.testimonial__avatar--4 { background: linear-gradient(140deg, #4c7a5e, #14261c); }

/* ============================================================
   Contacts
   ============================================================ */
.contacts {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contacts__list {
  display: grid;
  gap: 10px;
}
.contacts__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contacts__list li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.contacts__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.contacts__icon svg { width: 22px; height: 22px; }
.contacts__list small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.contacts__list a,
.contacts__list li div > span {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.contacts__list a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 20px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form__field { display: grid; gap: 8px; }
.contact-form__field label {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--bg-alt);
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: #9aa3b2; }
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.contact-form__field input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}
.contact-form__submit { width: 100%; margin-top: 4px; }
.contact-form__note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.contact-form__note a { color: var(--accent); font-weight: 500; }

.contact-form__success {
  display: none;
  text-align: center;
  font-weight: 500;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
}
.contact-form__success.is-visible { display: block; animation: fadeUp .4s var(--ease); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 32px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer__logo { color: var(--white); }
.footer .logo__mark::after { background: var(--ink); }

.socials {
  display: flex;
  gap: 12px;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.socials svg { width: 20px; height: 20px; }
.socials a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}
.footer__copy { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--white); }

/* ============================================================
   Reveal animation (работает только при включённом JS:
   контент всегда виден, если скрипт не загрузился)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__content { max-width: 680px; }
  .hero__visual { max-width: 520px; }
  .hero__floating--top { right: -8px; }
  .hero__floating--bottom { left: -8px; }

  .about { grid-template-columns: 1fr; gap: 72px; }
  .about__media { max-width: 440px; }

  .services, .advantages, .portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .nav__link { font-size: 20px; font-family: var(--font-display); font-weight: 600; }
  .nav__cta { display: inline-flex; }

  .burger { display: flex; }

  body.no-scroll { overflow: hidden; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .section__subtitle { font-size: 16px; }

  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .hero__title { font-size: clamp(30px, 8.5vw, 40px); }
  .hero__subtitle { font-size: 16.5px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 32px; }
  .hero__stat + .hero__stat::before { left: -16px; }
  .hero__floating { padding: 11px 14px; }
  .hero__floating--top { top: 24px; right: -4px; }
  .hero__floating--bottom { bottom: 40px; left: -4px; }

  .services, .advantages, .portfolio, .testimonials, .facts,
  .contact-form__row { grid-template-columns: 1fr; }

  .about { gap: 56px; }
  .about__exp { right: 12px; }

  .contact-form { padding: 28px 22px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }

  .facts { gap: 14px; }
  .fact { padding: 22px 20px; }
  .fact__num { font-size: 28px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__nav { gap: 18px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 20px; }
  .hero__stats { flex-wrap: wrap; gap: 24px 32px; }
  .logo__text { font-size: 16px; }
}
