:root {
  --bg: #EEF4F8;
  --card: #FFFFFF;
  --white: #FFFFFF;
  --border: #D6E2EA;
  --text: #1F3347;
  --muted: #5A6B7B;
  --btn: #F2B33D;
  --btn-hover: #E0A12B;
  --btn-text: #1F3347;
  --focus: #1F3347;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a {
  color: var(--text);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--muted);
  font-size: 16px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Шапка */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  flex-shrink: 0;
}

.site-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.site-nav {
  display: none;
}

@media (min-width: 560px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 17px;
  }
}

/* Полосы: полноширинные блоки с чередующимся фоном */
.band {
  padding: 72px 0;
}

.band--blue {
  background: var(--bg);
}

.band--white {
  background: var(--white);
}

@media (max-width: 699px) {
  .band {
    padding: 48px 0;
  }
}

/* Вступление */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.intro-text {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 18px;
}

.hero .btn {
  margin-top: 8px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 48px;
  }

  .intro-text {
    font-size: 20px;
  }
}

.note {
  margin-top: 12px;
}

/* Секции */
.band h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 24px;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 51, 71, .06);
}

.card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-num {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.steps h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Форма заявки */
.form-card {
  position: relative;
  max-width: 640px;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field > label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #A4302A;
}

.hint {
  color: var(--muted);
  font-size: 16px;
}

.field-error {
  color: #A4302A;
  font-size: 16px;
  font-weight: 700;
}

.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

@media (min-width: 560px) {
  .btn-submit {
    width: auto;
  }
}

.consent {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.status {
  margin-top: 12px;
  font-size: 17px;
}

.status.error {
  color: #A4302A;
  font-weight: 700;
}

.success p + p {
  margin-top: 8px;
}

.success:focus {
  outline: none;
}

/* Вопросы и ответы */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 18px 16px;
}

/* Подвал */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer p {
  margin: 6px 0;
}

.footer-name {
  font-weight: 700;
}

/* Увеличенное фото */
.lightbox {
  position: fixed;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(20, 35, 50, 0.85);
}

.lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.lb-close:hover {
  background: var(--border);
}

/* Узкие экраны: без горизонтальной прокрутки */
@media (max-width: 359px) {
  body {
    font-size: 16px;
  }
}
