/*
 * Стили страницы для партнёров (partners.parkingnearairports.io).
 *
 * Файл полностью самостоятельный: не участвует в сборке webpack и не
 * зависит от стилей основного сайта. Палитра, типографика и разделители
 * повторяют оформление прежней страницы на теме Salient.
 */

/* ==========================================================================
   Шрифты
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-regular.woff2') format('woff2'),
  url('../fonts/poppins-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-medium.woff2') format('woff2'),
  url('../fonts/poppins-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-semibold.woff2') format('woff2'),
  url('../fonts/poppins-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Переменные и базовые правила
   ========================================================================== */

:root {
  --pna-accent: #09184c;
  --pna-blue: #2a8eda;
  --pna-red: #ed0408;
  --pna-dark: #1e1e1e;
  --pna-grey-bg: #f4f4f4;
  --pna-header-text: #f4f4f4;
  --pna-footer-bg: #354753;
  --pna-border: #dcdcdc;
  --pna-container: 1200px;
  --pna-header-h: 90px;
}

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

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

body {
  margin: 0;
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--pna-dark);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pna-blue);
  text-decoration: none;
}

h1,
h2,
h4 {
  margin: 0;
  font-weight: 500;
  color: var(--pna-accent);
}

h1 {
  font-size: 40px;
  line-height: 45px;
}

h2 {
  font-size: 40px;
  line-height: 45px;
  text-transform: capitalize;
}

h4 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  text-transform: capitalize;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.pna-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

/* Шапка повторяет прежнюю: тёмно-синий фон, белый логотип, светлое меню. */
.pna-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pna-accent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.pna-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  min-height: var(--pna-header-h);
  padding: 15px 30px;
}

.pna-header__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.pna-header__logo img {
  width: auto;
  height: 35px;
}

.pna-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pna-nav__list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--pna-header-text);
  transition: color 0.2s ease;
}

.pna-nav__list a:hover,
.pna-nav__list a:focus-visible {
  color: #fff;
}

/* Кнопка мобильного меню */
.pna-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.pna-burger__line {
  display: block;
  height: 2px;
  background: var(--pna-header-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.pna-burger__line + .pna-burger__line {
  margin-top: 5px;
}

.pna-burger[aria-expanded='true'] .pna-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pna-burger[aria-expanded='true'] .pna-burger__line:nth-child(2) {
  opacity: 0;
}

.pna-burger[aria-expanded='true'] .pna-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Разделители секций (shape dividers)
   ========================================================================== */

.pna-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.pna-divider svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100%;
}

.pna-divider--curve {
  bottom: 0;
  height: 200px;
}

.pna-divider--curve svg path:nth-child(1) {
  opacity: 0.15;
}

.pna-divider--curve svg path:nth-child(2) {
  opacity: 0.3;
}

.pna-divider--waves {
  top: -1px;
  height: 450px;
  transform: rotate(180deg);
}

.pna-divider--waves svg path:first-child {
  opacity: 0.6;
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.pna-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 150px) 0 clamp(96px, 12vw, 190px);
  text-align: center;
  color: #fff;
}

.pna-hero__bg,
.pna-hero__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pna-hero__bg img {
  object-fit: cover;
  object-position: center center;
}

.pna-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--pna-blue);
  opacity: 0.5;
}

.pna-hero__content {
  position: relative;
  z-index: 2;
}

.pna-hero__title {
  max-width: 900px;
  margin: 0 auto 35px;
  color: #fff;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.pna-btn {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pna-btn--jumbo {
  padding: 22px 42px;
  font-size: 18px;
  background: var(--pna-red);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.pna-btn--jumbo:hover,
.pna-btn--jumbo:focus-visible {
  background: #c90306;
  transform: translateY(-2px);
}

.pna-btn--submit {
  padding: 16px 38px;
  font-size: 16px;
  background: var(--pna-accent);
}

.pna-btn--submit:hover:not([disabled]),
.pna-btn--submit:focus-visible {
  background: var(--pna-blue);
}

.pna-btn--submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ==========================================================================
   Преимущества
   ========================================================================== */

.pna-benefits {
  position: relative;
  padding: clamp(48px, 6vw, 90px) 0 clamp(48px, 6vw, 90px);
  background: var(--pna-grey-bg);
  text-align: center;
}

.pna-benefits > .pna-container {
  position: relative;
  z-index: 2;
}

.pna-benefits__title {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.pna-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.pna-card {
  padding: 28px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.pna-card__icon {
  display: block;
  margin-bottom: 20px;
  color: var(--pna-blue);
}

.pna-card__icon svg {
  display: block;
  width: 65px;
  height: 65px;
  fill: currentColor;
}

.pna-card__title {
  margin-bottom: 12px;
}

.pna-card__text {
  color: var(--pna-blue);
}

/* ==========================================================================
   Форма заявки
   ========================================================================== */

.pna-contact {
  padding: clamp(48px, 6vw, 90px) 0;
}

.pna-contact__intro {
  margin-bottom: clamp(28px, 3vw, 44px);
  text-align: center;
}

.pna-contact__intro h2 {
  margin-bottom: 12px;
}

.pna-form {
  max-width: 720px;
  margin: 0 auto;
}

.pna-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
}

.pna-field {
  display: block;
  margin-bottom: 18px;
}

.pna-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pna-accent);
}

.pna-field__input {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--pna-border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--pna-dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pna-field__input:focus {
  outline: none;
  border-color: var(--pna-blue);
  box-shadow: 0 0 0 3px rgba(42, 142, 218, 0.15);
}

.pna-field__error {
  display: none;
  margin-top: 5px;
  font-size: 13px;
  line-height: 18px;
  color: var(--pna-red);
}

.pna-field--invalid .pna-field__input {
  border-color: var(--pna-red);
}

.pna-field--invalid .pna-field__error {
  display: block;
}

/* Honeypot: поле не должно быть видно человеку, но остаётся в разметке. */
.pna-field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pna-form__message {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 22px;
}

.pna-form__message--success {
  color: #14622b;
  background: #e6f6e9;
  border: 1px solid #b6e2c0;
}

.pna-form__message--error {
  color: #8a0205;
  background: #fdeaea;
  border: 1px solid #f4bcbd;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.pna-footer {
  padding: 28px 0;
  background: var(--pna-footer-bg);
  color: #fff;
}

.pna-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pna-footer__copyright {
  margin: 0;
  font-size: 14px;
}

.pna-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pna-social a {
  display: block;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.pna-social a:hover,
.pna-social a:focus-visible {
  opacity: 1;
}

.pna-social svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media only screen and (max-width: 999px) {
  .pna-burger {
    display: block;
  }

  .pna-nav {
    display: none;
    flex: 1 0 100%;
    order: 3;
    padding-bottom: 16px;
  }

  .pna-nav--open {
    display: block;
  }

  .pna-header__inner {
    flex-wrap: wrap;
  }

  .pna-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pna-nav__list a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 16px;
  }
}

@media only screen and (min-width: 690px) {
  .pna-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pna-form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pna-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media only screen and (min-width: 1000px) {
  .pna-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  h1 {
    font-size: 40px;
    line-height: 48px;
  }
}

@media only screen and (max-width: 689px) {
  h1 {
    font-size: 30px;
    line-height: 38px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .pna-btn--jumbo {
    padding: 18px 32px;
    font-size: 16px;
  }

  .pna-divider--curve {
    height: 110px;
  }

  .pna-divider--waves {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pna-btn,
  .pna-burger__line {
    transition: none;
  }

  .pna-btn--jumbo:hover {
    transform: none;
  }
}
