/* Nivasen Interior Design — main styles (BEM) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #0d1a3a;
  --color-bg-deep: #08101f;
  --color-bg-grey: #2c2c2c;
  --color-bg-grey-soft: #3a3a3a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.78);
  --color-accent: #1e88e5;
  --color-accent-hover: #42a5f5;
  --color-border: #1e88e5;
  --color-sky: #e3f2fd;
  --color-sky-text: #1a1a1a;
  --color-shadow: rgba(0, 0, 0, 0.45);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --container: 1180px;
  --header-offset: 140px;
  --radius: 4px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(30, 136, 229, 0.18), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(0, 0, 0, 0.35), transparent 50%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 40%, #102848 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-accent-hover);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #90caf9;
}

ul,
ol {
  padding-left: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding: 0.12rem 0.35rem 0 0;
  color: var(--color-accent-hover);
}

.section--sky .drop-cap::first-letter {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section--grey {
  background: var(--color-bg-grey);
}

.section--sky {
  background: var(--color-sky);
  color: var(--color-sky-text);
}

.section--sky a {
  color: #0d47a1;
}

.section--sky .section__title,
.section--sky .section__lead,
.section--sky p,
.section--sky li,
.section--sky h3 {
  color: var(--color-sky-text);
}

.section__title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
}

.section--sky .section__lead {
  color: rgba(26, 26, 26, 0.78);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 16, 31, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 136, 229, 0.45);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  white-space: nowrap;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__link {
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}

.header__link:hover,
.header__link--active {
  color: #bbdefb;
  border-bottom-color: var(--color-accent);
}

.header__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(30, 136, 229, 0.55);
  white-space: nowrap;
  font-size: 0.95rem;
}

.header__phone {
  margin: 0;
  color: var(--color-text);
  white-space: nowrap;
}

.header__email {
  white-space: nowrap;
}

.header__address {
  color: var(--color-text-muted);
  white-space: nowrap;
  margin: 0;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.header__burger-line {
  display: block;
  height: 2px;
  background: var(--color-text);
  width: 100%;
  transition: var(--transition);
}

.header__burger.is-open .header__burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__burger.is-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open .header__burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.header__mobile-contacts {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--color-border);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 136, 229, 0.35);
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(30, 136, 229, 0.2);
}

/* Banner */
.banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a050a;
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.55), rgba(13, 26, 58, 0.75));
}

.banner__title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  max-width: 900px;
}

.banner--sm {
  min-height: 280px;
}

/* Slider */
.slider {
  position: relative;
  min-height: 78vh;
  max-height: 860px;
}

.slider__track {
  position: absolute;
  inset: 0;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.4), rgba(13, 26, 58, 0.72));
  z-index: 2;
}

.slider__title {
  max-width: 880px;
  margin-bottom: 1rem;
}

.slider__text {
  max-width: 640px;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.slider__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider__dot.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-border);
  background: rgba(8, 16, 31, 0.65);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.slider__arrow--prev {
  left: 1rem;
}

.slider__arrow--next {
  right: 1rem;
}

/* Advantages */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(30, 136, 229, 0.45);
  border-radius: var(--radius);
}

.advantage__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent-hover);
  display: block;
  margin-bottom: 0.5rem;
}

.advantage__label {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.advantage__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Services mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.mosaic__item {
  grid-column: span 4;
  background: var(--color-bg-grey);
  border: 1px solid rgba(30, 136, 229, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mosaic__item:nth-child(1) {
  grid-column: span 5;
}

.mosaic__item:nth-child(2) {
  grid-column: span 3;
}

.mosaic__item:nth-child(3) {
  grid-column: span 4;
}

.mosaic__item:nth-child(4) {
  grid-column: span 4;
}

.mosaic__item:nth-child(5) {
  grid-column: span 5;
}

.mosaic__item:nth-child(6) {
  grid-column: span 3;
}

.mosaic__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.mosaic__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.mosaic__title {
  margin: 0;
}

.mosaic__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

/* Forms */
.form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
}

.section--sky .form__input,
.section--sky .form__select,
.section--sky .form__textarea {
  background: #fff;
  color: #1a1a1a;
  border-color: #1565c0;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__message {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.form__message.is-visible {
  display: block;
}

.form__message--success {
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid #66bb6a;
  color: #c8e6c9;
}

.section--sky .form__message--success {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #43a047;
}

.form__message--error {
  background: rgba(13, 71, 161, 0.25);
  border: 1px solid #ef5350;
  color: #bbdefb;
}

.section--sky .form__message--error {
  background: #ffebee;
  color: #0d47a1;
  border-color: #e53935;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.review {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(30, 136, 229, 0.4);
  padding: 1.5rem;
}

.review__text {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.review__author {
  font-weight: 700;
  margin: 0;
  color: #bbdefb;
}

.review__meta {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Map */
.map-block {
  width: 100%;
}

.map-block__frame {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.contacts-map {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  min-height: 480px;
}

.contacts-map__info {
  background: var(--color-bg-grey);
  padding: 2.5rem;
}

.contacts-map__map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.contacts-map__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contacts-map__list li {
  margin-bottom: 1rem;
}

/* About story */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.story__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

/* Mission maze */
.maze {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
}

.maze__step {
  position: relative;
  flex: 1 1 180px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(30, 136, 229, 0.55);
  padding: 1.25rem;
  text-align: center;
}

.maze__step::after {
  content: '→';
  position: absolute;
  right: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent-hover);
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 1;
}

.maze__step:last-child::after {
  display: none;
}

.maze__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-accent-hover);
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq__item {
  border: 1px solid rgba(30, 136, 229, 0.45);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.5rem;
}

.section--sky .faq__item {
  background: #fff;
  border-color: #1e88e5;
}

.faq__question {
  margin: 0 0 0.6rem;
}

.faq__answer {
  margin: 0;
  color: var(--color-text-muted);
}

.section--sky .faq__answer {
  color: rgba(26, 26, 26, 0.8);
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team__card {
  background: var(--color-bg-grey);
  border: 1px solid rgba(30, 136, 229, 0.45);
  overflow: hidden;
  text-align: center;
}

.team__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.team__body {
  padding: 1.25rem;
}

.team__name {
  margin: 0 0 0.35rem;
}

.team__role {
  color: #bbdefb;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.team__bio {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Strengths staggered */
.strengths {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}

.strength {
  flex: 1;
  padding: 1.75rem 1.35rem;
  background: linear-gradient(160deg, #3a3a3a, #252525);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
  position: relative;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.strength::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, #64b5f6, #1e88e5, #0d47a1, #bbdefb);
  z-index: -1;
}

.strength:nth-child(1) {
  margin-top: 2.5rem;
}

.strength:nth-child(2) {
  margin-top: 0;
}

.strength:nth-child(3) {
  margin-top: 3.2rem;
}

.strength:nth-child(4) {
  margin-top: 1.1rem;
}

.strength__title {
  margin-bottom: 0.75rem;
  color: #bbdefb;
}

.strength__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Parchment tips */
.parchment-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.parchment {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 250, 235, 0.95), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(210, 180, 140, 0.55), transparent 45%),
    linear-gradient(160deg, #f3e2c4 0%, #e6cfa6 45%, #d7b98a 100%);
  color: #2b1d12;
  padding: 2rem 1.75rem;
  border: 1px solid #b08968;
  box-shadow:
    inset 0 0 40px rgba(120, 80, 40, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: rotate(-0.4deg);
}

.parchment:nth-child(even) {
  transform: rotate(0.5deg);
}

.parchment::before,
.parchment::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(120, 70, 30, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, #c9a66b, #8d6a3f);
}

.parchment::before {
  top: 12px;
  left: 12px;
}

.parchment::after {
  bottom: 12px;
  right: 12px;
}

.parchment__title {
  font-family: var(--font-display);
  color: #5c2e1a;
  margin-bottom: 0.75rem;
}

.parchment__text {
  margin: 0;
  color: #3b2a1c;
}

/* Service detail alternating cards */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(30, 136, 229, 0.4);
}

.service-detail--reverse .service-detail__media {
  order: 2;
}

.service-detail--reverse .service-detail__content {
  order: 1;
}

.service-detail__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.service-detail__price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-accent-hover);
  margin: 0.5rem 0 1rem;
}

.service-detail__list {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
}

.service-detail__list li {
  margin-bottom: 0.4rem;
}

/* Loyalty */
.loyalty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.loyalty__card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(30, 136, 229, 0.5);
  padding: 1.75rem;
  text-align: center;
}

.loyalty__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-accent-hover);
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--color-bg-deep);
  border-top: 1px solid rgba(30, 136, 229, 0.5);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.footer__logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #bbdefb;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__link {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.footer__link:hover {
  color: #fff;
}

.footer__phone {
  margin: 0 0 0.5rem;
}

.footer__address {
  display: inline-block;
  margin-top: 0.5rem;
}

.footer__messengers {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 136, 229, 0.35);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer__company {
  margin: 0 0 0.5rem;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content p {
  margin-bottom: 1.1rem;
  color: var(--color-text-muted);
}

.section--sky .legal-content,
.section--sky .legal-content p,
.section--sky .legal-content .section__title,
.section--sky .legal-content h2 {
  color: var(--color-sky-text);
}

.section--legal-title .legal-page__title {
  color: var(--color-text);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal--left {
  transform: translateX(-60px);
}

.reveal--right {
  transform: translateX(60px);
}

.reveal--up {
  transform: translateY(50px);
}

.reveal--down {
  transform: translateY(-40px);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal pages: no interactive CTA buttons */
.page--legal .btn {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header__bottom {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(320px, 88vw);
    height: calc(100vh - 72px);
    background: rgba(8, 16, 31, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateX(105%);
    transition: transform var(--transition);
    border-left: 1px solid var(--color-border);
    white-space: normal;
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 136, 229, 0.45);
    width: 100%;
    white-space: normal;
  }

  .header__mobile-contacts .header__phone,
  .header__mobile-contacts .header__address {
    white-space: normal;
  }

  .advantages__grid,
  .team,
  .loyalty {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic__item,
  .mosaic__item:nth-child(n) {
    grid-column: span 6;
  }

  .story,
  .service-detail,
  .service-detail--reverse .service-detail__media,
  .service-detail--reverse .service-detail__content,
  .contacts-map {
    grid-template-columns: 1fr;
  }

  .service-detail--reverse .service-detail__media,
  .service-detail--reverse .service-detail__content {
    order: initial;
  }

  .strengths {
    flex-direction: column;
  }

  .strength:nth-child(n) {
    margin-top: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .slider {
    min-height: 60vh;
  }
}

@media (max-width: 720px) {
  .form__row,
  .reviews,
  .parchment-wrap,
  .advantages__grid,
  .team,
  .loyalty,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .mosaic__item,
  .mosaic__item:nth-child(n) {
    grid-column: span 12;
  }

  .maze__step::after {
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.1rem;
    transform: translateX(-50%);
  }

  .header__top {
    white-space: normal;
  }

  .banner {
    min-height: 320px;
  }

  .slider {
    min-height: 70vh;
  }

  .map-block__frame,
  .contacts-map__map iframe {
    height: 320px;
    min-height: 320px;
  }
}


.section--legal-title {
  padding: 3rem 0 1rem;
}

.legal-page__title {
  text-align: center;
  margin: 0;
}
