:root {
  --bg: #f2efe8;
  --ink: #333f48;
  --frame-line: rgba(51, 63, 72, 0.5);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-text: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
}

body {
  height: 100vh;
  height: 100dvh;
  padding: 20px;
  display: flex;
}

.rff-ph {
  flex: 1 1 auto;
  border: 1px solid var(--frame-line);
  padding: 4px;
}

.rff-ph__inner {
  height: 100%;
  border: 1px solid var(--frame-line);
  display: flex;
  flex-direction: column;
}

.rff-ph__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 56px;
}

.rff-ph__dates {
  display: contents;
}

.rff-ph__block {
  flex: 1 1 0;
  text-align: center;
}

.rff-ph__block--1 { order: 1; }
.rff-ph__emblem { order: 2; }
.rff-ph__block--2 { order: 3; }

.rff-ph__date {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 40px;
  letter-spacing: 0.64px;
  text-transform: uppercase;
  margin: 0;
}

.rff-ph__date-line {
  display: block;
  width: 274px;
  height: 2px;
  margin: 6px auto 35px;
  background: url('../images/line.svg') center / contain no-repeat;
}

.rff-ph__label {
  font-family: var(--font-text);
  font-size: 28px;
  letter-spacing: 0.64px;
  margin: 0;
}

.rff-ph__emblem {
  flex: 0 0 auto;
  width: 344px;
  height: 352px;
}

.rff-ph__emblem img {
  display: block;
  width: 100%;
  height: 100%;
}

.rff-ph__footer {
  flex: 0 0 auto;
  padding: 32px 0;
  text-align: center;
}

.rff-ph__footer img {
  height: 41px;
  width: auto;
}

/* ---------------- Мобильная версия ---------------- */
@media (max-width: 767px) {
  .rff-ph__content {
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 0;
    gap: 0;
  }

  .rff-ph__emblem {
    width: 254px;
    height: 204px;
    margin-bottom: 71px;
    order: 1;
  }

  .rff-ph__dates {
    display: flex;
    flex-direction: column;
    gap: 35px;
    order: 2;
  }

  .rff-ph__block {
    width: 100%;
  }

  .rff-ph__block--1 {
    order: 2;
  }

  .rff-ph__block--2 {
    order: 3;
  }

  .rff-ph__date {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.32px;
  }

  .rff-ph__date-line {
    width: 137px;
    height: 1px;
    margin-top: 3px;
    margin-bottom: 13px;
    background-image: url('../images/line-mob.svg');
  }

  .rff-ph__label {
    font-size: 14px;
    letter-spacing: 0.32px;
  }

  .rff-ph__footer {
    padding: 24px 0;
  }

  .rff-ph__footer img {
    height: 26px;
  }
}
