@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --color-mustard: #b8923a;
  --color-mustard-deep: #9a782e;
  --color-gray: #2f3238;
  --color-gray-soft: #3a3e46;
  --color-coral: #ff9a88;
  --color-coral-dark: #e0705c;
  --color-coral-on-mustard: #5a160e;
  --color-coral-on-gray: #ffb3a5;
  --color-white: #f7f4ef;
  --color-white-soft: rgba(247, 244, 239, 0.82);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --header-h: 78px;
  --container: 1180px;
  --gradient-frame: linear-gradient(135deg, #e0705c, #f0c27b, #e0705c);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-white);
  background: var(--color-gray);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: var(--color-coral);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #ffb3a5;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  float: left;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
  color: var(--color-coral);
  font-weight: 700;
}

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

.section {
  padding: 4.5rem 0;
}

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

.section--mustard .stats__value,
.section--mustard .reviews__author,
.section--mustard .dropcap::first-letter,
.section--mustard .team__role,
.section--mustard .service-card__price,
.section--mustard .loyalty__icon,
.section--mustard .form__label,
.section--mustard a:not(.btn) {
  color: var(--color-coral-on-mustard);
}

/* Картки сильних сторін мають сірий фон — заголовки лишаємо світлими */
.strengths__title,
.section--mustard .strengths__title {
  color: var(--color-coral-on-gray);
}

.section--mustard .service-card__price,
.section--mustard .loyalty__icon,
.section--mustard .stats__item,
.section--mustard .service-card,
.section--mustard .loyalty__item,
.section--mustard .reviews__card,
.section--mustard .form-block,
.section--mustard .team__card {
  border-color: var(--color-coral-on-mustard);
}

.section--mustard a:not(.btn):hover {
  color: #3d0c07;
}

.section--gray .strengths__title,
.section--gray .stats__value,
.section--gray .reviews__author,
.section--gray .dropcap::first-letter,
.section--gray .team__role,
.section--gray .service-card__price,
.section--gray .loyalty__icon,
.section--gray .goals__index,
.section--gray .form__label,
.section--gray a:not(.btn),
.section--gray-soft .strengths__title,
.section--gray-soft .dropcap::first-letter,
.section--gray-soft .goals__index,
.section--gray-soft a:not(.btn),
.footer__title,
.footer a,
.legal h2 {
  color: var(--color-coral-on-gray);
}

.section--gray a:not(.btn):hover,
.section--gray-soft a:not(.btn):hover,
.footer a:hover {
  color: #ffd2c8;
}

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

.section--gray-soft {
  background: var(--color-gray-soft);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 0.4em;
}

.section__lead {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-white-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-coral-dark);
  border-radius: 999px;
  background: var(--color-coral-dark);
  color: #1f1f1f;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(224, 112, 92, 0.28);
}

.btn:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
}

.btn--ghost:hover {
  background: var(--color-coral);
  color: #1f1f1f;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(47, 50, 56, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 112, 92, 0.35);
  max-width: 100%;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  white-space: nowrap;
}

.header__logo {
  flex-shrink: 0;
}

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

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

.header__menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header__menu a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.header__menu a:hover,
.header__menu a.is-active {
  color: var(--color-coral);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
}

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

.header__mail {
  white-space: nowrap;
}

.header__address {
  color: var(--color-white-soft);
  white-space: nowrap;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-coral);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger--active span:nth-child(2) {
  opacity: 0;
}

.header__burger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.banner {
  position: relative;
  min-height: clamp(280px, 42vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.banner__title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0;
  padding: 1rem 1.6rem;
  max-width: min(92%, 920px);
  color: var(--color-white);
  border-radius: 18px;
  background: rgba(20, 22, 26, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.strengths {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .strengths {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .strengths__item {
    display: flex;
    flex-direction: column;
  }
}

.strengths__item {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--color-gray);
  box-shadow: var(--shadow-lift);
}

.strengths__item::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: var(--gradient-frame);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.strengths__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.strengths__title {
  font-size: 1.7rem;
  color: var(--color-coral);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}

.mosaic__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  box-shadow: var(--shadow-lift);
  background: var(--color-gray);
  display: flex;
  flex-direction: column;
}

.mosaic__card:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}

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

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

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

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

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

.mosaic__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-height: 280px;
}

.mosaic__card:nth-child(1) .mosaic__img {
  max-height: none;
  flex: 1;
}

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

.mosaic__title {
  font-size: 1.45rem;
  margin: 0;
}

.stats {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stats__item {
  padding: 1.25rem;
  border: 2px solid var(--color-coral);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--color-coral);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats__label {
  font-size: 0.95rem;
  color: var(--color-white-soft);
}

.reviews {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reviews__card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid rgba(224, 112, 92, 0.65);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow-lift);
}

.reviews__text {
  font-style: italic;
  color: var(--color-white-soft);
}

.reviews__author {
  margin: 1rem 0 0;
  font-weight: 700;
  color: var(--color-coral);
}

.form-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow-lift);
}

.form {
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 0.4rem;
}

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

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  border: 2px solid rgba(224, 112, 92, 0.55);
  border-radius: 10px;
  background: rgba(47, 50, 56, 0.9);
  color: var(--color-white);
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(224, 112, 92, 0.25);
}

.form__input--error {
  border-color: #ff8f82;
  box-shadow: 0 0 0 3px rgba(255, 100, 90, 0.2);
}

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

.form__message {
  min-height: 1.4em;
  font-weight: 600;
  font-size: 0.95rem;
}

.form__message--success {
  color: #9be7b0;
}

.form__message--error {
  color: #ffb3a5;
}

.about-story {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
  }
}

.about-story__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  box-shadow: var(--shadow-lift);
}

.goals {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.goals__item {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-left: 5px solid var(--color-coral);
  box-shadow: var(--shadow-lift);
}

.goals__index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-coral);
  line-height: 1;
  min-width: 2rem;
}

.team {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team__card {
  border: 2px solid var(--color-coral);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-lift);
}

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

.team__body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.team__name {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}

.team__role {
  color: var(--color-coral);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.service-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 600px) {
  .service-card {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.service-card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.service-card__price {
  display: inline-block;
  margin: 0.4rem 0 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(224, 112, 92, 0.2);
  border: 1px solid var(--color-coral);
  font-weight: 700;
  color: var(--color-coral);
}

.service-card__meta {
  font-size: 0.92rem;
  color: var(--color-white-soft);
  margin-bottom: 1rem;
}

.loyalty {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .loyalty {
    grid-template-columns: repeat(4, 1fr);
  }
}

.loyalty__item {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: var(--shadow-lift);
}

.loyalty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(224, 112, 92, 0.18);
  border: 2px solid var(--color-coral);
  font-size: 1.4rem;
  color: var(--color-coral);
  font-family: var(--font-display);
  font-weight: 700;
}

.map {
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: rgba(0, 0, 0, 0.2);
}

.map__frame {
  display: block;
  width: 100%;
  min-height: clamp(280px, 45vw, 420px);
  height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.map__link {
  text-align: center;
  margin: 1.1rem 0 0;
  font-weight: 600;
}

.contacts-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contacts-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-coral);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-lift);
}

.contacts-card p {
  margin-bottom: 0.7rem;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.legal h2 {
  font-size: 1.55rem;
  margin-top: 1.8rem;
  color: var(--color-coral);
}

.legal p {
  color: var(--color-white-soft);
}

.footer {
  background: #23262b;
  border-top: 2px solid rgba(224, 112, 92, 0.4);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 140px 1fr 1fr 1.2fr;
  }
}

.footer__logo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--color-coral);
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-coral);
}

.footer__menu {
  display: grid;
  gap: 0.45rem;
}

.footer__menu a {
  color: var(--color-white);
}

.footer__phone {
  margin: 0 0 0.5rem;
}

.footer__company {
  font-size: 0.92rem;
  color: var(--color-white-soft);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-white-soft);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .header__burger {
    display: inline-flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    bottom: 0;
    width: min(360px, 100%);
    height: calc(100vh - var(--header-h));
    max-width: 100vw;
    background: rgba(35, 38, 43, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 2px solid var(--color-coral);
    visibility: hidden;
    pointer-events: none;
  }

  .header__nav--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    white-space: normal;
  }

  .header__contacts {
    display: none;
  }

  .header__contacts--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    white-space: normal;
    max-width: 100%;
  }

  .header__inner {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }

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

  .mosaic__card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (min-width: 1025px) {
  .header__contacts--mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.2rem 0;
  }

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

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

  .form-block {
    padding: 1.3rem;
  }

  .footer__bottom {
    flex-direction: column;
  }
}


.header__inner--legal {
  flex-wrap: wrap;
  white-space: normal;
  row-gap: 0.75rem;
}

.header__nav--legal {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  padding: 0;
  flex-direction: row;
  overflow: visible;
}

@media (max-width: 1024px) {
  .header__nav--legal {
    display: flex;
    width: 100%;
    order: 3;
  }

  .header__inner--legal .header__contacts {
    display: none;
  }

  .header__nav--legal .header__menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}
