/* Lanorel — Kaffeestube, Berlin. BEM throughout. */

:root {
  --color-bg: #3c2a22;
  --color-bg-deep: #2a1c16;
  --color-brown: #5a3a2a;
  --color-brown-deep: #4a2e22;
  --color-text: #ffffff;
  --color-text-soft: #f3e9dc;
  --color-gold: #e0b44a;
  --color-gold-deep: #c4922e;
  --color-line: rgba(224, 180, 74, 0.45);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 92px;
  --wrap: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}

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

a {
  color: var(--color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff3cf;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
.banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(42, 28, 22, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 22px;
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__extra {
  display: none;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.header__contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.header__phone,
.header__mail,
.header__address {
  margin: 0;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
  line-height: 1;
}

.header__mail {
  text-decoration: none;
  color: var(--color-gold);
}

.header__address {
  color: var(--color-text-soft);
}

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-gold);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.burger__line {
  display: block;
  height: 2px;
  background: var(--color-gold);
  width: 100%;
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 16, 12, 0.15) 0%, rgba(28, 16, 12, 0.72) 100%);
}

.banner__inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto 64px;
}

.banner__kicker {
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 10px;
}

.banner__title {
  font-size: clamp(46px, 7vw, 86px);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.banner__lead {
  max-width: 640px;
  font-size: 20px;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

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

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

.section__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section__kicker {
  color: var(--color-gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 8px;
}

.section__title {
  font-size: clamp(36px, 5vw, 56px);
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.3em;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--color-gold);
  font-weight: 600;
}

/* ---------- Mosaic of offers ---------- */

.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-bg-deep);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.card--wide {
  grid-row: span 2;
}

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

.card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
}

.card__text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.card__body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-gold);
  color: #2a1c16;
  border: 2px solid var(--color-gold);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.btn--ghost:hover {
  background: var(--color-gold);
  color: #2a1c16;
}

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.review {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 22px 20px 18px;
}

.review__stars {
  color: var(--color-gold);
  letter-spacing: 3px;
  margin: 0 0 8px;
  font-size: 15px;
}

.review__text {
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--color-text-soft);
}

.review__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.review__meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-gold);
}

/* ---------- Pyramid ---------- */

.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 10px 0 36px;
}

.pyramid__row {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.pyramid__stone {
  background: linear-gradient(180deg, #6b4632 0%, #4a2e22 100%);
  border: 2px solid var(--color-gold);
  border-radius: 14px;
  text-align: center;
  padding: 22px 12px 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(36px);
}

.pyramid__row--1 .pyramid__stone { width: min(280px, 70%); }
.pyramid__row--2 .pyramid__stone { width: min(260px, 42%); }
.pyramid__row--3 .pyramid__stone { width: min(240px, 30%); }

.pyramid__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  color: var(--color-gold);
  line-height: 1;
}

.pyramid__label {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.pyramid.is-in .pyramid__stone {
  animation: rise 0.7s ease forwards;
}

.pyramid.is-in .pyramid__row--1 .pyramid__stone { animation-delay: 0.05s; }
.pyramid.is-in .pyramid__row--2 .pyramid__stone:nth-child(1) { animation-delay: 0.2s; }
.pyramid.is-in .pyramid__row--2 .pyramid__stone:nth-child(2) { animation-delay: 0.32s; }
.pyramid.is-in .pyramid__row--3 .pyramid__stone:nth-child(1) { animation-delay: 0.46s; }
.pyramid.is-in .pyramid__row--3 .pyramid__stone:nth-child(2) { animation-delay: 0.58s; }
.pyramid.is-in .pyramid__row--3 .pyramid__stone:nth-child(3) { animation-delay: 0.7s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 28px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-gold);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: #321f18;
  color: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
}

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

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--color-gold);
  border-color: transparent;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-soft);
}

.form__note {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-size: 16px;
}

.form__note--ok {
  color: #d8f5c8;
}

.form__note--bad {
  color: #ffd0c2;
}

.form__actions {
  grid-column: 1 / -1;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-bg-deep);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq__q::after {
  content: "+";
  color: var(--color-gold);
  font-family: var(--font-body);
}

.faq__item.is-open .faq__q::after {
  content: "–";
}

.faq__a {
  display: none;
  padding: 0 20px 16px;
  color: var(--color-text-soft);
}

.faq__item.is-open .faq__a {
  display: block;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

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

.diamonds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 18px;
  margin-top: 12px;
}

.diamond {
  background: var(--color-brown-deep);
  border: 2px solid var(--color-gold);
  transform: rotate(45deg);
  width: min(220px, 78%);
  aspect-ratio: 1;
  margin: 28px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.diamond__inner {
  transform: rotate(-45deg);
  max-width: 140px;
}

.diamond__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--color-gold);
}

.diamond__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.person {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
}

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

.person__body {
  padding: 16px 16px 18px;
}

.person__name {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0;
}

.person__role {
  color: var(--color-gold);
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.person__text {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-soft);
}

/* ---------- Services ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.price__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
}

.price__sum {
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 30px;
}

.price__text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 15.5px;
  flex: 1;
}

.guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guarantee {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(42, 28, 22, 0.35);
}

.guarantee__title {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--color-gold);
}

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

.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.perk {
  border-top: 3px solid var(--color-gold);
  background: var(--color-bg-deep);
  border-radius: 12px;
  padding: 18px 16px;
}

.perk__num {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 28px;
  margin: 0;
}

.perk__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 4px 0;
}

.perk__text {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-soft);
}

.loyalty {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  border: 2px solid var(--color-gold);
  border-radius: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 180, 74, 0.16), transparent 40%),
    var(--color-bg-deep);
}

.loyalty__steps {
  margin: 0;
  padding-left: 18px;
}

.loyalty__badge {
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  width: 220px;
  height: 220px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loyalty__badge strong {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--color-gold);
  line-height: 1;
  font-weight: 600;
}

/* ---------- Contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 24px;
}

.contact-card__line {
  margin: 0 0 12px;
}

.contact-card__links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.map {
  margin-top: 28px;
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.map__frame {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: sepia(0.35) contrast(0.95);
}

.map__caption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 15px;
}

/* ---------- Footer ---------- */

.footer {
  background: #1d120e;
  border-top: 1px solid var(--color-line);
  padding: 48px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 120px 1.1fr 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__link {
  color: var(--color-text);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__phone,
.footer__mail,
.footer__address {
  margin: 0 0 6px;
}

.footer__fine {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 180, 74, 0.25);
  font-size: 14px;
  color: var(--color-text-soft);
}

.footer__fine p {
  margin: 0 0 6px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #241610;
  border: 1px solid var(--color-gold);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin-inline: auto;
}

.cookie[hidden] {
  display: none;
}

.cookie__text {
  margin: 0;
  font-size: 15px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(42px);
}

.reveal.is-in {
  animation: slide-in 0.8s ease forwards;
}

.reveal--d1 { animation-delay: 0.1s; }
.reveal--d2 { animation-delay: 0.22s; }
.reveal--d3 { animation-delay: 0.34s; }
.reveal--d4 { animation-delay: 0.46s; }

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .pyramid__stone,
  .pyramid.is-in .pyramid__stone {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Legal ---------- */

.legal {
  padding: 56px 0 80px;
}

.legal__title {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 18px;
}

.legal h2 {
  font-size: 30px;
  margin-top: 1.4em;
  color: var(--color-gold);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .header__contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #241610;
    border-bottom: 1px solid var(--color-line);
    display: none;
    padding: 12px 20px 22px;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 10px 0;
    font-size: 18px;
  }

  .nav__extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-line);
  }

  .nav__extra p,
  .nav__extra a {
    margin: 0;
    white-space: normal;
  }

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

  .card--wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  .team,
  .perks {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid,
  .about-grid,
  .contact-grid,
  .loyalty,
  .guarantees,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pyramid__row--3 .pyramid__stone {
    width: min(200px, 31%);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .banner {
    min-height: 380px;
  }

  .section {
    padding: 60px 0;
  }

  .mosaic,
  .reviews,
  .team,
  .perks,
  .price-grid,
  .about-grid,
  .contact-grid,
  .loyalty,
  .guarantees,
  .footer__grid,
  .form,
  .diamonds {
    grid-template-columns: 1fr;
  }

  .form__field--full,
  .form__note,
  .form__actions {
    grid-column: auto;
  }

  .diamond {
    width: 200px;
  }

  .pyramid__row {
    flex-direction: column;
    align-items: center;
  }

  .pyramid__row--1 .pyramid__stone,
  .pyramid__row--2 .pyramid__stone,
  .pyramid__row--3 .pyramid__stone {
    width: min(320px, 100%);
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .loyalty__badge {
    width: 180px;
    height: 180px;
  }
}
