/* =========================================================
   IFEDOROV Design — основные стили
   Макет: 1920px. Размеры резиновые через clamp().
   ========================================================= */

/* ========== Переменные ========== */
:root {
  --c-black: #000;
  --c-white: #fff;
  --c-blue: #0068a5;
  --c-blue-light: #c4e4f5;
  --c-gray: #8a8a8a;

  --container: 1920px;
  --pad: clamp(16px, 4.2vw, 80px);        /* поля страницы */
  --gap: clamp(16px, 1.6vw, 30px);        /* зазор сетки */

  --fs-hero: clamp(34px, 4.2vw, 80px);
  --fs-h2: clamp(26px, 2.5vw, 48px);
  --fw-h2: 600;
  --lh-h2: 1.15;
  --fs-nav: clamp(20px, 1.7vw, 32px);
  --fs-btn: clamp(18px, 1.7vw, 32px);
  --fs-text: clamp(15px, 1.15vw, 22px);
}

/* ========== Сброс ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fs-text);
  line-height: 1.4;
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ========== Общее ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.section-text {
  margin-top: .4em;
  font-size: var(--fs-text);
}

/* Кнопка */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(52px, 5.2vw, 100px);
  padding: 0 2em;
  background: var(--c-black);
  color: var(--c-white);
  font-size: var(--fs-btn);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s, color .2s;
}
.btn:hover,
.btn:focus-visible { background: var(--c-blue); color: var(--c-white); }

/* ========== Логотип ========== */
.logo { display: inline-flex; }
.header__logo .logo img { height: clamp(44px, 4.4vw, 84px); width: auto; }
.footer__brand .logo img { height: clamp(80px, 8vw, 155px); width: auto; }

/* Текстовый вариант (если нет logo-blue.svg) */
.logo--text {
  flex-direction: column;
  align-items: center;
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 200;
  line-height: 1;
  color: var(--c-blue);
}
.logo__main {
  font-size: clamp(30px, 3vw, 58px);
  letter-spacing: .02em;
  background: linear-gradient(180deg, #8fcdee 0%, var(--c-blue) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo__sub {
  margin-top: .5em;
  margin-right: -1.9em;           /* компенсация разрядки последней буквы */
  font-size: clamp(9px, .75vw, 14px);
  letter-spacing: 1.9em;
}
.site-footer .logo__main { font-size: clamp(56px, 6vw, 120px); }
.site-footer .logo__sub  { font-size: clamp(14px, 1.4vw, 28px); }

/* ========== Шапка ========== */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--c-white);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: clamp(64px, 6.25vw, 120px);
}
.nav { padding-inline: clamp(0px, 2vw, 38px); }
.nav--left  { justify-self: start; }
.nav--right { justify-self: end; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5.9vw, 113px);
}
.nav__list a {
  font-size: var(--fs-nav);
  font-weight: 500;
  transition: color .2s;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--c-blue); }

/* Бургер и мобильное меню (видны только ≤900px) */
.burger {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--c-black);
  transition: transform .25s, opacity .25s;
}
.burger span + span { margin-top: 7px; }
.is-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu { display: none; }

/* ========== Первый экран ========== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(420px, 49vw, 940px);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(40px, 8vw, 155px);
  padding-bottom: clamp(24px, 2.9vw, 56px);
}
.hero__title {
  max-width: 11em;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.15;
}
.hero__subtitle {
  margin-top: .8em;
  font-size: var(--fs-text);
}
.hero__btn {
  width: min(100%, 570px);
  margin-top: auto;
}
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Первый экран с фото на весь фон (страница проекта) */
.hero--cover { color: var(--c-white); background: #111; }
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 65%);
}
.hero--cover .btn { background: var(--c-white); color: var(--c-black); }
.hero--cover .btn:hover { background: var(--c-blue); color: var(--c-white); }

/* ========== Проекты (главная и /projects/) ========== */
.projects { padding-top: clamp(48px, 6.25vw, 120px); }
.projects__list {
  display: grid;
  gap: clamp(32px, 3.1vw, 60px);
}
.project__link {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  align-items: end;
}
.project__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.project__text {
  margin-top: .5em;
  font-size: var(--fs-text);
}
.project__more {
  display: inline-block;
  margin-top: 1.2em;
  font-size: var(--fs-text);
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color .2s;
}
.project__media {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #f2f2f2;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.project__link:hover .project__media img { transform: scale(1.03); }
.project__link:hover .project__more { color: var(--c-blue); }

/* Заголовок страницы списка */
.page-head {
  padding-top: clamp(40px, 5.2vw, 100px);
  text-align: center;
}
.page-head__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}

/* Пагинация */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 3.1vw, 60px);
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--c-black);
  font-size: var(--fs-text);
  transition: background-color .2s, color .2s;
}
.page-numbers.current,
a.page-numbers:hover { background: var(--c-black); color: var(--c-white); }
.page-numbers.dots { border: 0; }

/* ========== Услуги ========== */
.services { padding-top: clamp(48px, 6.25vw, 120px); }
.services__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  align-items: center;
}
.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.service {
  position: relative;
  display: block;
  aspect-ratio: 570 / 1050;
  overflow: hidden;
  background: #1a1a1a;
  color: var(--c-white);
}
.service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 40%);
}
.service:hover img { transform: scale(1.04); }
.service__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(14px, 1.1vw, 22px);
}
.service__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
}
.service__text {
  margin-top: .4em;
  font-size: clamp(13px, 1vw, 19px);
  opacity: .9;
}

/* ========== Главная: о студии ========== */
.about { padding-top: clamp(48px, 6.25vw, 120px); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
  align-items: center;
}
.about__media img { width: 100%; }

/* ========== Страница проекта ========== */
.project-intro { padding-top: clamp(40px, 5.2vw, 100px); }
.project-intro__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.project-intro__text {
  max-width: 1100px;
  margin-top: 1em;
  font-size: var(--fs-text);
}
.project-intro__text p + p { margin-top: .8em; }
.project-intro__text a { text-decoration: underline; }

.project-logo {
  display: flex;
  justify-content: center;
  padding-block: clamp(40px, 6.25vw, 120px);
}
.project-logo img {
  width: auto;
  max-height: clamp(160px, 26vw, 500px);
}

.project-gallery__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.project-gallery__item {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #f2f2f2;
}
.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== «О нас»: команда ========== */
.team { padding-top: clamp(48px, 9.4vw, 180px); }
.team__head {
  text-align: center;
  margin-bottom: clamp(32px, 6.8vw, 130px);
}
.team__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;          /* неполный ряд — по центру */
  gap: clamp(20px, 1.6vw, 30px) var(--gap);
}
.team__row + .team__row { margin-top: clamp(20px, 1.6vw, 30px); }
.team__row--lead .member { flex: 0 0 calc((100% - var(--gap)) / 2); }
.team__row--rest .member { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.member__photo { width: 100%; overflow: hidden; }
.team__row--lead .member__photo { max-width: 730px; aspect-ratio: 9 / 7; }
.team__row--rest .member__photo { max-width: 525px; aspect-ratio: 5 / 4; }
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.member__photo--empty { background: #f2f2f2; }
.member__name {
  margin-top: clamp(4px, .5vw, 10px);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.member__role {
  margin-top: .2em;
  font-size: var(--fs-text);
}

/* ========== «Входик» (и общая основа форм) ========== */
.auth {
  padding-top: clamp(40px, 5.2vw, 100px);
  padding-bottom: clamp(40px, 3.9vw, 75px);
}
.auth__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.auth__text {
  margin-top: clamp(16px, 2vw, 38px);
  font-size: var(--fs-text);
}
.auth__errors {
  width: min(100%, 610px);
  margin-top: 24px;
  padding: 14px 20px;
  border: 1px solid #c62828;
  color: #c62828;
  font-size: var(--fs-text);
  text-align: left;
}
.auth__errors p + p { margin-top: .4em; }

.auth__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, .8vw, 15px);
  width: min(100%, 610px);
  margin-top: clamp(20px, 1.8vw, 34px);
}
.auth__field { width: 100%; }
.auth__input {
  width: 100%;
  height: clamp(56px, 5.2vw, 100px);
  padding: 0 clamp(14px, 1.15vw, 22px);
  border: 1px solid var(--c-black);
  border-radius: 0;
  background: var(--c-white);
  font: inherit;
  font-size: var(--fs-text);
  color: var(--c-black);
  transition: border-color .2s, box-shadow .2s;
}
.auth__input::placeholder { color: var(--c-gray); }
.auth__input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 1px var(--c-blue);
}
.auth__btn {
  width: min(100%, 570px);
  min-height: clamp(56px, 5.2vw, 100px);
  margin-top: clamp(16px, 1.3vw, 25px);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.auth__switch {
  margin-top: clamp(14px, 1.3vw, 25px);
  font-size: var(--fs-btn);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color .2s;
}
.auth__switch:hover { color: var(--c-blue); }
.auth__or {
  margin-top: clamp(10px, 1vw, 20px);
  font-size: var(--fs-text);
  line-height: 1.8;
}
.auth__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 3.1vw, 60px);
  margin-top: clamp(16px, 1.6vw, 30px);
}
.auth__socials img {
  width: clamp(64px, 7.8vw, 150px);
  height: auto;
  transition: opacity .2s, transform .2s;
}
.auth__socials a:hover img { opacity: .8; transform: translateY(-3px); }

/* ========== «Оставить заявку» ========== */
.request .auth__form { margin-top: clamp(20px, 2.3vw, 45px); }

.request__select-wrap {
  width: min(100%, 570px);
  margin-top: clamp(4px, .5vw, 10px);
}
.request__select {
  width: 100%;
  height: clamp(48px, 2.9vw, 56px);
  padding: 0 56px 0 clamp(16px, 2.1vw, 40px);
  border: 1px solid var(--c-black);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right clamp(16px, 1.7vw, 32px) center / 18px;
  font: inherit;
  font-size: var(--fs-text);
  color: var(--c-black);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.request__select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 1px var(--c-blue);
}

.request__consent {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.05vw, 20px);
  width: 100%;
  margin-top: clamp(8px, .8vw, 15px);
  font-size: clamp(13px, 1vw, 19px);
  text-align: left;
  cursor: pointer;
}
.request__consent input {
  flex: 0 0 auto;
  width: clamp(24px, 1.8vw, 35px);
  height: clamp(24px, 1.8vw, 35px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #d9d9d9;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color .2s;
}
.request__consent input:checked {
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 70%;
}
.request__consent input:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}
.request__consent a { text-decoration: underline; }
.request .auth__btn { margin-top: clamp(24px, 2.9vw, 55px); }

/* Ловушка для ботов */
.request__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========== Обычные страницы и записи (index.php) ========== */
.page { padding-block: clamp(40px, 5.2vw, 100px); }
.entry + .entry { margin-top: clamp(32px, 3.1vw, 60px); }
.entry__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.entry__thumb { margin-top: 1em; }
.entry__content {
  max-width: 1100px;
  margin-top: 1em;
  font-size: var(--fs-text);
}
.entry__content > * + * { margin-top: .8em; }
.entry__content a { text-decoration: underline; }
.entry__content ul { padding-left: 1.2em; list-style: disc; }
.entry__content ol { padding-left: 1.2em; list-style: decimal; }

/* ========== Подвал ========== */
.site-footer {
  margin-top: clamp(48px, 6.25vw, 120px);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.footer__brand {
  display: flex;
  flex-direction: column;
}
.footer__brand > .logo { align-self: center; }
.footer__socials {
  display: flex;
  gap: clamp(24px, 4.3vw, 84px);
  margin-top: clamp(24px, 3.5vw, 68px);
}
.footer__socials img {
  width: clamp(52px, 6.6vw, 126px);
  height: auto;
  transition: opacity .2s, transform .2s;
}
.footer__socials a:hover img { opacity: .8; transform: translateY(-3px); }
.footer__social-label {
  margin-top: clamp(20px, 3vw, 56px);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.footer__col { padding-top: clamp(8px, 1.2vw, 22px); }
.footer__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
.footer__menu { margin-top: clamp(24px, 7.3vw, 140px); }
.footer__menu li + li { margin-top: clamp(8px, 1.2vw, 22px); }
.footer__menu a {
  font-size: var(--fs-text);
  transition: color .2s;
}
.footer__menu a:hover { color: var(--c-blue); }

/* Большая надпись внизу */
.wordmark { margin-top: clamp(40px, 5.2vw, 100px); }
.wordmark img { width: 100%; }

.wordmark--text {
  position: relative;
  height: 15vw;                    /* надпись обрезана снизу, как в макете */
  overflow: hidden;
  font-weight: 400;
  line-height: .8;
  white-space: nowrap;
  user-select: none;
}
.wordmark__top {
  display: block;
  font-size: 21vw;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--c-blue);
}
.wordmark__bottom {
  position: absolute;
  top: 7.5vw;
  left: 17%;
  font-size: 16vw;
  letter-spacing: -.02em;
  color: var(--c-blue-light);
}

/* ========== Адаптив: планшеты (≤900px) ========== */
@media (max-width: 900px) {
  /* Шапка */
  .nav { display: none; }
  .header__logo { grid-column: 2; }
  .burger { display: block; grid-column: 3; }

  .is-open .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 24px var(--pad) 32px;
    background: var(--c-white);
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .mobile-menu .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Первый экран: текст сверху, фото снизу */
  .hero:not(.hero--cover) .hero__inner { min-height: 0; }
  .hero:not(.hero--cover) .hero__btn { margin-top: 24px; }
  .hero:not(.hero--cover) .hero__media {
    position: static;
    width: 100%;
    margin-top: 24px;
  }
  .hero--cover .hero__inner { min-height: 70vh; }

  /* Сетки в одну колонку */
  .project__link,
  .services__inner,
  .about__inner { grid-template-columns: 1fr; }
  .project__info { order: 2; }

  .team__row--rest .member { flex-basis: calc((100% - var(--gap)) / 2); }

  /* Подвал */
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__brand { grid-column: 1 / -1; align-items: center; text-align: center; }
  .footer__menu { margin-top: 20px; }
}

/* ========== Адаптив: телефоны (≤560px) ========== */
@media (max-width: 560px) {
  .services__list { grid-template-columns: 1fr; }
  .service { aspect-ratio: 4 / 5; }

  .team__row--lead .member,
  .team__row--rest .member { flex-basis: 100%; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__col { text-align: center; }
}

/* Пользователям, отключившим анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}