/* ============================================================
   Royal Diamonds Collectors Club — main stylesheet
   Recreates the original Tilda (rdc.fund) design:
   Yeseva One + Montserrat, #33425b / gold #b79d5d / #1f1f1f
   ============================================================ */

:root {
  --dark: #33425b;        /* headings, menu */
  --dark-text: #212f45;
  --gold: #b79d5d;        /* accent */
  --gold-light: #e8b66c;  /* gold text on dark */
  --footer-bg: #1f1f1f;
  --bg-alt: #f5f5f5;
  --text: #4a4a4a;
  --line: #eee;
  --header-h: 95px;
  --font-head: 'Yeseva One', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--dark); transition: color .3s ease; }
a:hover { color: var(--gold); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .5px;
  color: #555;
  text-decoration: none;
  text-transform: none;
}
.header-logo:hover { color: #555; opacity: .8; }

.main-nav ul {
  list-style: none;
  display: flex;
}
.main-nav li { padding: 0 35px; }
.main-nav li:first-child { padding-left: 0; }
.main-nav li:last-child { padding-right: 0; }

.main-nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  text-decoration: none;
  padding: 38px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 20%;
  width: 100%; height: 100%;
  border-bottom: 2px solid var(--gold);
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }
.main-nav a:hover::after,
.main-nav a.active::after { opacity: 1; bottom: -2px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cart-link {
  position: relative;
  color: var(--dark);
  display: inline-flex;
  padding: 6px;
}

.auth-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #7a7a7a;
  text-decoration: none;
  padding: 6px 0;
}
.auth-link:hover { color: var(--gold); }
.auth-user {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--gold);
}
.logout-form { display: inline; }
.logout-form .auth-link {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.cart-badge {
  position: absolute;
  top: -6px; right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.cart-badge.empty { display: none; }

.menu-burger {
  display: none;
  width: 28px; height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dark);
  transition: .25s ease-in-out;
}
.menu-burger span:nth-child(1) { top: 0; }
.menu-burger span:nth-child(2), .menu-burger span:nth-child(3) { top: 8px; }
.menu-burger span:nth-child(4) { top: 16px; }
.menu-burger.opened span:nth-child(1) { top: 8px; width: 0; left: 50%; }
.menu-burger.opened span:nth-child(2) { transform: rotate(45deg); }
.menu-burger.opened span:nth-child(3) { transform: rotate(-45deg); }
.menu-burger.opened span:nth-child(4) { top: 8px; width: 0; left: 50%; }

/* ---------------- Messages ---------------- */

.messages { margin-top: calc(var(--header-h) + 12px); }
.message {
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 16px;
}
.message.success {
  background: #f4f0e4;
  border: 1px solid var(--gold);
  color: var(--dark-text);
}

/* ---------------- Typography / sections ---------------- */

.section {
  padding: 90px 0;
}
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 45px 0; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-head--wide { max-width: 900px; }

h1.page-title {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  text-align: center;
}

h2.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.25;
  color: var(--dark);
  text-align: center;
  margin-bottom: 25px;
}
@media (min-width: 900px) {
  h2.section-title { font-size: 56px; }
  h2.section-title--md { font-size: 42px; }
}

.section-descr {
  font-size: 22px;
  font-weight: 300;
  text-align: center;
  color: var(--text);
}

.text-block { max-width: 780px; margin: 0 auto; }
.text-block p { margin-bottom: 1.2em; font-weight: 300; }
.text-block p:last-child { margin-bottom: 0; }

.source-sign {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 40px;
}

/* ---------------- Buttons ---------------- */
/* Original Tilda styles: Montserrat 600, square corners, 60px height.
   type_button on the cover = solid gold #e8b66c; type_button2 = white with
   a 1px #33425b border; the membership download = solid black. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  padding: 0 45px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out,
              border-color .2s ease-in-out, opacity .2s ease-in-out;
  white-space: nowrap;
}
.btn-gold { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }
.btn-gold:hover { background: #ffc877; border-color: #ffc877; color: #fff; }
.btn-outline { background: #fff; border-color: var(--dark); color: var(--dark); }
.btn-outline:hover { color: var(--dark); opacity: .8; }
.btn-dark { background: #000; border-color: #000; color: #fff; }
.btn-dark:hover { color: #fff; opacity: .8; }
.btn-sm { height: 50px; padding: 0 30px; font-size: 15px; }
.btn .icon {
  width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: url('../img/icon-download.svg') center/contain no-repeat;
  mask: url('../img/icon-download.svg') center/contain no-repeat;
}

/* ---------------- Home: cover ---------------- */

.hero {
  padding: 210px 0 150px;
  background: #fff;
  text-align: center;
}
.hero h1 { margin-bottom: 25px; }
.hero-descr {
  max-width: 860px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 300;
  color: var(--text);
}
.hero-descr a { text-decoration: underline; }
.hero-token {
  margin-top: 18px;
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 24px;
}
.hero-buttons {
  margin-top: 70px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ---------------- Video ---------------- */

.video-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- Features (Top 3) ---------------- */

.features {
  display: flex;
  justify-content: center;
}
.feature {
  flex: 1;
  padding: 10px 30px;
  text-align: center;
  position: relative;
}
.feature + .feature::before {
  content: '';
  position: absolute;
  left: 0; top: 10%;
  width: 1px;
  height: 80%;
  background: #d1d1d1;
}
.feature-num {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 14px;
}
.feature-descr { font-size: 16px; font-weight: 300; }

/* ---------------- Article / product cards (t404 style) ---------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); color: var(--text); }
.card-img {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
  border-radius: 4px;
}
.card-img img,
.card-img .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #33425b 0%, #586a8a 100%);
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-head);
  font-size: 44px;
}
.card-sep {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 22px 0;
  transition: background .3s ease;
}
.card:hover .card-sep { background: var(--gold); }
.card-title {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.card-descr { font-size: 16px; font-weight: 300; }

/* ---------------- News list (t403 rows) ---------------- */

.news-rows { border-top: 1px solid var(--line); }
.news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease-in-out;
}
.news-row:hover { background: rgba(0, 0, 0, .02); color: var(--text); }
.news-row-img {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.news-row-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-row-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  border-right: 1px solid var(--line);
}
.news-row-title {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
}
.news-row-descr { font-size: 18px; font-weight: 300; }

/* ---------------- Article page ---------------- */

.article-hero { padding: 180px 0 30px; }
.article-hero h1 {
  font-size: 44px;
  max-width: 900px;
  margin: 0 auto;
}
.article-img {
  max-width: 900px;
  margin: 0 auto 60px;
}
.article-img img { width: 100%; border-radius: 4px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px 0;
}
.gallery img { width: 100%; border-radius: 4px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.product-gallery { margin: 20px 0 0; gap: 12px; }

/* ---------------- Catalog (T778 store style) ---------------- */

.catalog-subtitle {
  text-align: center;
  color: #878787;
  font-size: 24px;
  font-weight: 300;
  margin-top: 20px;
}

/* Token Growth block (T230) */

.token-growth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .token-growth { grid-template-columns: 1fr; } }
.token-growth-text h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 20px;
}
.token-growth-text p { font-weight: 300; font-size: 18px; }
.token-growth-video .video-sign {
  margin-top: 6px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text);
}

/* Category switcher (parts) — Yeseva text links, as in the original */

.store-cats {
  text-align: center;
  margin-bottom: 45px;
}
.store-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  text-decoration: none;
  margin: 8px 18px;
  position: relative;
}
.store-cat::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  border-bottom: 2px solid var(--gold);
  opacity: 0;
  transition: opacity .25s ease;
}
.store-cat:hover { color: var(--gold); }
.store-cat:hover::after, .store-cat.active::after { opacity: 1; }
.store-cat.active { color: var(--gold); }

/* Sort bar */

.store-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.store-count { font-size: 15px; color: #878787; }
.store-sort { font-size: 15px; color: var(--text); }
.store-sort select {
  margin-left: 6px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: #fff;
}

/* Product grid — 4 columns, vertical photos, as in the original */

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 1000px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .store-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.store-card {
  text-decoration: none;
  display: block;
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease;
}
.store-card:hover {
  box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}
.store-card-img {
  position: relative;
  width: 100%;
  padding-top: 103.85%;
  overflow: hidden;
}
.store-card-img img,
.store-card-img .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-card-img .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #33425b 0%, #586a8a 100%);
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-head);
  font-size: 40px;
}
.store-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--dark);
  padding: 16px 14px 18px;
}
.store-card:hover .store-card-name { color: var(--gold); }

.sold-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(31, 31, 31, .85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
}
.store-card.sold .store-card-img img { opacity: .8; }

.product-card { text-align: center; }
.product-card .card-img { padding-top: 75%; }
.product-name {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-price {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}
.product-price .old { color: #9a9a9a; text-decoration: line-through; margin-right: 8px; }
.product-card .btn { margin-top: 4px; }

.empty-note {
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  padding: 40px 0;
}

/* product detail */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .photo {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-detail .photo img,
.product-detail .photo .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail .photo .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #33425b 0%, #586a8a 100%);
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-head);
  font-size: 90px;
}
.product-info h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 12px;
}
.product-cat { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: #9a9a9a; margin-bottom: 22px; }
.product-info .product-price { font-size: 32px; margin: 18px 0 26px; }
.product-info .descr p { font-weight: 300; margin-bottom: 1.1em; }
.add-to-cart {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.qty-input {
  width: 74px;
  height: 46px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
}
.back-link { display: inline-block; margin-top: 40px; font-size: 15px; }

.stock-note { margin-top: 14px; font-size: 14px; color: #8a9bb5; }

/* ---------------- Cart / checkout ---------------- */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  color: var(--dark);
  padding: 12px 10px;
  border-bottom: 2px solid var(--dark);
}
.cart-table td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table .item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-table .item img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-table .item a { text-decoration: none; font-weight: 500; color: var(--dark); }
.cart-table .qty-cell input {
  width: 64px; height: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.cart-table .sum { font-family: var(--font-head); color: var(--dark); }
.remove-btn {
  border: none;
  background: none;
  color: #b04a4a;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.cart-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}
.cart-total {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--dark);
}
.cart-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.form-panel .field { margin-bottom: 22px; }
.form-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-panel input, .form-panel textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
}
.form-panel input:focus, .form-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-panel .helplist { font-size: 13px; color: #999; margin-top: 6px; }
.errorlist { list-style: none; color: #b04a4a; font-size: 13px; margin-top: 6px; }

.summary-panel {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 30px;
}
.summary-panel h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--dark);
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--dark);
}
.summary-note { font-size: 13px; color: #8a9bb5; margin-top: 14px; }

.order-success { text-align: center; padding: 60px 0; }
.order-success .big {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--dark);
  margin: 30px 0 16px;
}
.order-success .num { color: var(--gold); }

/* ---------------- Split rows (partners, t480 style) ---------------- */

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
@media (max-width: 900px) { .split-row { grid-template-columns: 1fr; } }
.split-img {
  position: relative;
  min-height: 380px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
}
.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-text h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 22px;
}
.split-text p { font-size: 18px; font-weight: 300; margin-bottom: 1em; }

.divider { height: 1px; background: rgba(0, 0, 0, .2); margin: 50px 0; }

/* ---------------- Membership ---------------- */

.membership-img { margin: 40px auto; max-width: 960px; }
.membership-img img { width: 100%; border-radius: 4px; }
.form-download {
  text-align: center;
  padding: 60px 0;
}
.form-download h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 35px;
}

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

.contacts-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contacts-email {
  font-size: 24px;
  font-weight: 300;
  color: #7a7a7a;
  margin-bottom: 26px;
}
.contacts-email a { color: #7a7a7a; text-decoration: none; }
.contacts-email a:hover { color: var(--gold); }
.contacts-social {
  color: #7a7a7a;
  margin-bottom: 22px;
}
.contacts-social .icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.contacts-social .icons a { color: #7a7a7a; padding: 6px; }
.contacts-social .icons a:hover { color: var(--gold); }

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

.site-footer {
  background: var(--footer-bg);
  margin-top: 0;
}
.footer-contacts {
  text-align: center;
  padding: 90px 20px 0;
}
.footer-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 42px;
  color: #fff;
  margin-bottom: 25px;
}
@media (min-width: 900px) { .footer-title { font-size: 56px; } }
.footer-descr {
  max-width: 900px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 60px 20px 30px;
}
.footer-logo {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}
.footer-logo:hover { color: #fff; opacity: .8; }
.footer-email { text-align: center; }
.footer-email a {
  font-size: 20px;
  font-weight: 300;
  color: var(--gold-light);
  text-decoration: none;
}
.footer-email a:hover { color: var(--gold-light); opacity: .8; }
.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
.footer-social a { color: #fff; padding: 4px; }
.footer-social a:hover { color: #fff; opacity: .8; }
.footer-copy {
  padding: 0 20px 26px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ---------------- 404 ---------------- */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: 110px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.error-page h1 { margin-bottom: 14px; }
.error-page p { font-weight: 300; margin-bottom: 34px; }

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

@media (max-width: 1200px) {
  .main-nav li { padding: 0 20px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #111;
    display: none;
    z-index: 989;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0 20px; }
  .main-nav li { padding: 0; text-align: center; }
  .main-nav a {
    display: block;
    padding: 16px 30px;
    color: #fff;
    font-size: 20px;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
  .menu-burger { display: block; }
  .menu-burger span { background: #fff; box-shadow: 0 0 1px #33425b; }

  .hero { padding: 140px 0 90px; }
  .hero h1, h1.page-title { font-size: 38px; }
  .hero-descr { font-size: 19px; }
  .section { padding: 60px 0; }
  .section-descr { font-size: 18px; }
  .news-row { grid-template-columns: 1fr; }
  .news-row-text { padding: 30px 20px; }
  .news-row-img { min-height: 240px; }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 26px;
    justify-items: center;
  }
  .footer-social { justify-content: center; }
  .article-hero { padding-top: 130px; }
  .article-hero h1 { font-size: 32px; }
}
