/* ============================================================
   мой-рабочий.рф
   Палитра взята из логотипа:
   тёмно-синий #13265a, синий #3273ae, голубой #55bad2
   ============================================================ */

:root {
  --navy: #13265a;
  --navy-deep: #0d1b42;
  --blue: #3273ae;
  --blue-dark: #2a6295;
  --cyan: #55bad2;
  --cyan-dark: #3ba5bf;
  --cyan-soft: #e3f3f8;

  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #e9f0f8;
  --text: #1b2436;
  --muted: #5d6a80;
  --line: #dde5ef;

  --shadow-sm: 0 1px 3px rgba(19, 38, 90, .08);
  --shadow-md: 0 8px 24px rgba(19, 38, 90, .10);
  --shadow-lg: 0 18px 44px rgba(19, 38, 90, .14);

  --header-h: 78px;
  --radius: 6px;
  --container: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--navy); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

.text-center { text-align: center; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .2s, box-shadow .25s;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 11px 26px; font-size: 12px; }
.btn-lg { padding: 19px 64px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ---------------- Хедер ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 20px; }
.logo img { width: 190px; height: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 28px; }
.nav-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--blue);
  border-color: var(--cyan);
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Обложка ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--surface) url("../img/hero-bg.svg") center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .58) 50%, rgba(255, 255, 255, .9) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding-block: 130px 90px;
}
.hero-ribbon {
  display: inline-block;
  margin-bottom: 16px;
  padding: 9px 18px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 3px;
}
.hero-title {
  font-size: clamp(25px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--blue); }
.hero-text {
  max-width: 660px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--muted);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: 22px;
  height: 38px;
  margin-left: -11px;
  border: 2px solid rgba(19, 38, 90, .3);
  border-radius: 12px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--blue);
  border-radius: 2px;
  animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------------- Секции ---------------- */
.section { padding-block: 76px; }
.section-pt-0 { padding-top: 0; }
.section-light { background: var(--bg); }
.section-tint { background: var(--surface); }
.section-title-only { padding-bottom: 46px; }
.section-cta { padding-block: 24px 86px; }

.section-title {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 68px;
  height: 4px;
  margin-left: -34px;
  background: var(--cyan);
  border-radius: 2px;
}

.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- Карточки с иконками ---------------- */
.icon-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.icon-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.icon-card__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  background: var(--cyan-soft);
  border-radius: 50%;
  color: var(--blue);
}
.icon-card__icon svg { width: 36px; height: 36px; }
.icon-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.icon-card__text { font-size: 15px; color: var(--muted); }

/* ---------------- Карточки с фото ---------------- */
.feature {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.feature__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature:hover .feature__media img { transform: scale(1.06); }
.feature__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px 26px;
}
.feature__title {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature__subtitle {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.feature__list { margin-bottom: 22px; font-size: 14px; }
.feature__list li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--text); }
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
}
.feature__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------------- Этапы ---------------- */
.schedule { display: grid; gap: 26px; }
.schedule__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .3s, border-color .3s;
}
.schedule__item:hover { box-shadow: var(--shadow-md); border-color: var(--cyan); }
.schedule__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid var(--line);
}
.schedule__media img { width: 100%; height: 100%; object-fit: cover; }
.schedule__num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 15px;
  background: var(--cyan-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.schedule__title {
  font-size: 22px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.schedule__text { font-size: 15px; color: var(--muted); }

/* ---------------- Команда ---------------- */
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 22px 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.member__photo {
  width: 136px;
  height: 136px;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 5px var(--cyan-soft);
  transition: box-shadow .3s;
}
.member:hover .member__photo { box-shadow: 0 0 0 5px var(--cyan); }
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.member__name {
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.member__text {
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- Форма заказа ---------------- */
.section-form {
  position: relative;
  background: var(--surface) url("../img/contacts-bg.svg") center / cover no-repeat;
}
.section-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 251, .9);
}
.form-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.form-block__title {
  font-size: clamp(25px, 3vw, 34px);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.form-block__lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 34px;
}
.form-block__contacts-title {
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.contacts li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 16px;
}
.contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: var(--cyan-soft);
  border-radius: 50%;
  color: var(--blue);
}
.contacts__icon svg { width: 18px; height: 18px; fill: none; }
.contacts a { transition: color .25s; }
.contacts a:hover { color: var(--blue); }

.order-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b8; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 186, 210, .22);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #d94a4a; }
.form-note {
  margin-top: 14px;
  font-size: 14px;
  min-height: 1.4em;
  color: var(--blue);
}
.form-note.is-error { color: #c33a3a; }

/* ---------------- Подвал ---------------- */
.site-footer {
  background: var(--navy);
  padding-block: 28px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

/* ---------------- Наверх ---------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background-color .25s;
}
.to-top:hover { background: var(--blue); }
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------------- Появление при скролле ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Адаптив ---------------- */
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-block { grid-template-columns: 1fr; gap: 38px; }

  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 340px; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .nav ul li { width: 100%; }
  .nav-link {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }
  .nav-link:hover, .nav-link.is-active { border-left-color: var(--cyan); }
}
@media (max-width: 767px) {
  .section { padding-block: 54px; }
  .section-pt-0 { padding-top: 0; }
  .schedule__item { grid-template-columns: 1fr; gap: 18px; }
  .member { padding: 28px 18px 24px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-ribbon { font-size: 17px; }
  .order-form { padding: 22px 18px; }
  .logo img { width: 160px; }
}

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