/* ==========================================================================
   Усадьба «Верес» — оформление сайта
   Стиль: уютный деревенский модерн
   ========================================================================== */

:root {
  --cream:      #faf5ec;
  --cream-2:    #f2e8d9;
  --cream-3:    #e9dcc7;
  --paper:      #ffffff;

  --ink:        #33291f;
  --ink-2:      #5b4f42;
  --muted:      #8b7d6b;

  --terra:      #c0623c;
  --terra-dark: #a44f2e;
  --terra-soft: #f6e5dc;

  --moss:       #63805a;
  --moss-dark:  #4c6645;
  --gold:       #d9a441;

  --line:       rgba(51, 41, 31, .12);
  --line-soft:  rgba(51, 41, 31, .07);

  --sh-1: 0 2px 10px rgba(51, 41, 31, .06);
  --sh-2: 0 12px 32px rgba(51, 41, 31, .10);
  --sh-3: 0 24px 56px rgba(51, 41, 31, .18);

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-pill: 999px;

  --font-display: 'Vollkorn', 'Georgia', serif;
  --font-body: 'Nunito', 'Segoe UI', -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;

  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- база --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terra); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--terra-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------- типографика --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--terra); color: #fff; }

/* Декоративная веточка под заголовками секций */
.section-title {
  text-align: center;
  margin-bottom: 2.6rem;
}
.section-title h2 { margin-bottom: .35em; }
.section-title .kicker {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--terra);
  display: block;
  margin-bottom: .1em;
  transform: rotate(-1.5deg);
}
.leaf-rule {
  width: 92px;
  height: 14px;
  margin: 0 auto;
  color: var(--moss);
  opacity: .75;
}

/* -------------------------------------------------------------- сетка --- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}

[class*="col-"] { padding: 0 14px; width: 100%; }

/* Совместимость с разметкой, сохранённой в базе сайта (сетка Bootstrap) */
@media (min-width: 768px) {
  .col-sm-1  { width: 8.3333%; }  .col-sm-2  { width: 16.6667%; }
  .col-sm-3  { width: 25%; }      .col-sm-4  { width: 33.3333%; }
  .col-sm-5  { width: 41.6667%; } .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.3333%; } .col-sm-8  { width: 66.6667%; }
  .col-sm-9  { width: 75%; }      .col-sm-10 { width: 83.3333%; }
  .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
  .col-sm-offset-1 { margin-left: 8.3333%; }
  .col-sm-offset-2 { margin-left: 16.6667%; }
  .col-sm-offset-3 { margin-left: 25%; }
}
@media (min-width: 992px) {
  .col-md-1  { width: 8.3333%; }  .col-md-2  { width: 16.6667%; }
  .col-md-3  { width: 25%; }      .col-md-4  { width: 33.3333%; }
  .col-md-5  { width: 41.6667%; } .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.3333%; } .col-md-8  { width: 66.6667%; }
  .col-md-9  { width: 75%; }      .col-md-10 { width: 83.3333%; }
  .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
  .col-md-offset-1 { margin-left: 8.3333%; }
  .col-md-offset-2 { margin-left: 16.6667%; }
  .col-md-offset-3 { margin-left: 25%; }
}
@media (min-width: 1200px) {
  .col-lg-1  { width: 8.3333%; }  .col-lg-2  { width: 16.6667%; }
  .col-lg-3  { width: 25%; }      .col-lg-4  { width: 33.3333%; }
  .col-lg-5  { width: 41.6667%; } .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.3333%; } .col-lg-8  { width: 66.6667%; }
  .col-lg-9  { width: 75%; }      .col-lg-10 { width: 83.3333%; }
  .col-lg-11 { width: 91.6667%; } .col-lg-12 { width: 100%; }
  .col-lg-offset-1 { margin-left: 8.3333%; }
  .col-lg-offset-2 { margin-left: 16.6667%; }
  .col-lg-offset-3 { margin-left: 25%; }
}

.clearfix::after { content: ''; display: table; clear: both; }

/* ------------------------------------------------------------- шапка --- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease);
}

.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28, 22, 16, .55), transparent);
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

.site-header.is-stuck {
  background: rgba(250, 245, 236, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(51, 41, 31, .10);
  padding: 8px 0;
}
.site-header.is-stuck::before { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: block;
  flex: 0 0 auto;
  position: relative;
  height: 66px;
  aspect-ratio: 171 / 187;
  transition: height .35s var(--ease);
}
.brand img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease);
}
.brand .brand-light {
  opacity: 1;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}
.brand .brand-dark { opacity: 0; }

.site-header.is-stuck .brand { height: 50px; }
.site-header.is-stuck .brand .brand-light,
.site-header.menu-open .brand .brand-light { opacity: 0; }
.site-header.is-stuck .brand .brand-dark,
.site-header.menu-open .brand .brand-dark { opacity: 1; }
.site-header.menu-open .brand { position: relative; z-index: 2; }

/* --------------------------------------------------------------- меню --- */

.nav-wrap { flex: 1 1 auto; display: flex; justify-content: flex-end; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav > li { position: relative; }

.nav a {
  display: block;
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.site-header.is-stuck .nav a { color: var(--ink-2); text-shadow: none; }

.nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin: 3px auto 0;
  background: var(--terra);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav a:hover::after,
.nav li.menu-current > a::after { width: 60%; }

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header.is-stuck .nav a:hover { color: var(--terra); background: var(--terra-soft); }

.nav li.menu-current > a { color: #fff; }
.site-header.is-stuck .nav li.menu-current > a { color: var(--terra); }

/* Кнопка мобильного меню */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .25s var(--ease);
}
.site-header.is-stuck .nav-toggle,
.nav-toggle.is-open { background: var(--cream-2); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), background .3s;
}
.site-header.is-stuck .nav-toggle span,
.nav-toggle.is-open span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- герой --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 90px;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroZoom 22s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(28, 22, 16, .48) 0%, rgba(28, 22, 16, .18) 40%,
                    rgba(28, 22, 16, .55) 100%);
}

.hero__inner { position: relative; z-index: 2; color: #fff; max-width: 880px; }

.hero__kicker {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #ffe9c9;
  display: block;
  margin-bottom: .1em;
  transform: rotate(-1.5deg);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.hero h1 {
  color: #fff;
  margin-bottom: .35em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, .92);
  max-width: 620px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Волна-переход к следующей секции */
.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 3;
  color: var(--cream);
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; display: block; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 88px;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, .8);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .9), transparent);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Шапка внутренних страниц */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  background: linear-gradient(160deg, var(--cream-2), var(--cream));
  text-align: center;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--cream-3) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .2em; }
.page-head .kicker {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--terra);
}

/* ------------------------------------------------------------ секции --- */

section { position: relative; }

.band { padding: 96px 0; }
.band--tight { padding: 68px 0; }
.band--cream { background: var(--cream); }
.band--paper { background: var(--paper); }
.band--warm  { background: linear-gradient(165deg, var(--cream-2), var(--cream)); }

.band--paper + .band--paper { padding-top: 0; }

/* Приветствие */
.welcome { text-align: center; }
.welcome .title {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--terra);
  margin: 0 0 .5em;
}
.kicker--hand {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--terra);
  display: block;
  margin-bottom: .1em;
}
.welcome .lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 780px;
  margin: 0 auto;
}
.welcome .lead::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: .8;
  padding: .08em .12em 0 0;
  color: var(--terra);
  font-weight: 600;
}

/* ------------------------------------------------- карточки (thumb-pad1) --- */

.thumb-box1 .row { row-gap: 28px; }

.thumb-pad1 { height: 100%; }

.thumb-pad1 .thumbnail {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 38px 30px 32px;
  text-align: center;
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.thumb-pad1 .thumbnail::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--terra));
  border-radius: 0 0 4px 4px;
  transition: width .45s var(--ease);
}

.thumb-pad1 .thumbnail:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-2);
  border-color: transparent;
}
.thumb-pad1 .thumbnail:hover::before { width: 70%; }

.thumb-pad1 figure {
  margin: 0 auto 20px;
  width: 96px; height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--terra-soft), var(--cream-2));
  border-radius: 50%;
  transition: transform .45s var(--ease);
}
.thumb-pad1 .thumbnail:hover figure { transform: scale(1.07) rotate(-4deg); }
.thumb-pad1 figure img { width: 52px; height: auto; }

.thumb-pad1 .caption h4 { margin-bottom: .5em; }
.thumb-pad1 .caption p { color: var(--muted); font-size: .97rem; margin: 0; }

/* --------------------------------------------- фото-плитки (thumb-pad2) --- */

.thumb-box2 .row, .thumb-box11 .row { row-gap: 28px; }

.thumb-pad2 .thumbnail {
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.thumb-pad2 .thumbnail:hover { box-shadow: var(--sh-3); transform: translateY(-6px); }

.thumb-pad2 figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.thumb-pad2 figure a { display: block; position: relative; }

.thumb-pad2 figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.thumb-pad2 .thumbnail:hover img { transform: scale(1.07); }

.thumb-pad2 figure i {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 60px 26px 24px;
  font-style: normal;
  color: #fff;
  background: linear-gradient(to top, rgba(24, 18, 12, .82) 10%,
                                       rgba(24, 18, 12, .35) 55%, transparent);
  transition: padding-bottom .4s var(--ease);
}
.thumb-pad2 .thumbnail:hover figure i { padding-bottom: 32px; }

.thumb-pad2 figure i .title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.thumb-pad2 figure i span:not(.title) {
  font-size: .93rem;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------- видео --- */

.band--dark {
  background: linear-gradient(168deg, #3a2f24, #2b231a);
  color: rgba(255, 255, 255, .82);
}
.band--dark h2 { color: #fff; }
.band--dark .leaf-rule { color: var(--gold); opacity: .9; }
.band--dark .section-title .kicker { color: var(--gold); }

.video-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--r-l);
  overflow: hidden;
  background: #000;
  box-shadow: var(--sh-3);
  aspect-ratio: 64 / 35;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(43, 35, 26, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease), opacity .35s var(--ease);
}
.video-play svg {
  width: 96px;
  height: 96px;
  color: #fff;
  border-radius: 50%;
  background: rgba(192, 98, 60, .92);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.video-play:hover { background: rgba(43, 35, 26, .16); }
.video-play:hover svg { transform: scale(1.08); background: var(--terra-dark); }
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }

.video-note {
  text-align: center;
  margin: 1.6rem 0 0;
  font-size: .95rem;
  color: rgba(255, 255, 255, .62);
}

/* ---------------------------------------------------- блок «почему нас» --- */

.thumb-box4 .row { align-items: center; row-gap: 36px; }

.thumb-box4 figure {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sh-2);
  position: relative;
}
.thumb-box4 figure img {
  width: 100%;
  transition: transform .9s var(--ease);
}
.thumb-box4 figure:hover img { transform: scale(1.05); }

/* Рамка-паспарту у фотографии */
.framed { position: relative; }
.framed::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: calc(var(--r-l) - 10px);
  pointer-events: none;
}

/* ------------------------------------------------------------- отзыв --- */

.thumb-box3 { background: linear-gradient(165deg, var(--cream-2), var(--cream)); }

.thumb-box3 .thumb-pad1 .thumbnail {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 44px 40px;
  background: var(--paper);
  border-radius: var(--r-l);
  box-shadow: var(--sh-2);
}
.thumb-box3 .thumb-pad1 .thumbnail:hover { transform: none; }
.thumb-box3 .thumb-pad1 .thumbnail::before { display: none; }

.thumb-box3 .caption p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1.2em;
}

.thumb-box3 .lnk {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--terra);
}
.thumb-box3 .lnk::before { content: '— '; }

/* ------------------------------------------------------- бронирование --- */

.thumb-box5 {
  position: relative;
  padding: 104px 0;
  text-align: center;
  color: #fff;
  background: var(--moss-dark);
  overflow: hidden;
}
.thumb-box5::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/bg_pic2.jpg') center/cover no-repeat;
  opacity: .22;
}
.thumb-box5::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(76, 102, 69, .92), rgba(51, 41, 31, .88));
}
.thumb-box5 .container { position: relative; z-index: 2; }
.thumb-box5 h2 { color: #fff; }
.thumb-box5 .kicker { font-family: var(--font-hand); font-size: 1.7rem; color: var(--gold); }

.phone-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 260px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-m);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.phone-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .17); }

.phone-card .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
}
.phone-card .who { font-size: .95rem; color: rgba(255, 255, 255, .8); }

/* Блок «Бронирование» на внутренних страницах */
.thumb-box11 { padding: 72px 0; background: var(--cream-2); text-align: center; }
.reservation {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}
.reservation span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terra);
  margin-top: .15em;
}

/* ------------------------------------------------------------ кнопки --- */

.btn-default, .btn1, .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--terra);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(192, 98, 60, .32);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-default:hover, .btn1:hover, .btn:hover {
  color: #fff;
  background: var(--terra-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(192, 98, 60, .42);
}
.btn-default:active, .btn1:active, .btn:active { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  box-shadow: none;
}

.btn--moss { background: var(--moss); box-shadow: 0 8px 22px rgba(99, 128, 90, .32); }
.btn--moss:hover { background: var(--moss-dark); box-shadow: 0 14px 30px rgba(99, 128, 90, .42); }

/* ---------------------------------------- содержимое страниц из админки --- */

.page-content { font-size: 1.05rem; }

.page-content h2 { margin-top: 1.8em; }
.page-content h3 {
  margin-top: 1.6em;
  padding-left: 18px;
  border-left: 4px solid var(--terra);
  border-radius: 2px;
}
.page-content h4 { margin-top: 1.4em; color: var(--moss-dark); }
.page-content > *:first-child { margin-top: 0; }

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.page-content ul > li {
  position: relative;
  padding: 6px 0 6px 34px;
}
.page-content ul > li::before {
  content: '';
  position: absolute;
  left: 6px; top: 15px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
}

.page-content ol { padding-left: 22px; margin: 0 0 1.4em; }
.page-content ol li { padding: 4px 0; }

/* ---- список телефонов на «Контактах» ---- */
.page-content ul.phone-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 1em;
}
.page-content ul.phone-list > li {
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.page-content ul.phone-list > li::before { content: none; }
@media (max-width: 620px) {
  .page-content ul.phone-list { grid-template-columns: 1fr; }
}
.page-content ul.phone-list > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--terra);
}

.page-content .phone-list a.phone {
  display: block;
  padding: 18px 22px 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  background: none;
}
.page-content .phone-list a.phone:hover { color: var(--terra); }
.page-content .phone-list a.phone--main { color: var(--terra); }

.phone-note {
  display: block;
  padding: 0 22px 18px;
  font-size: .9rem;
  color: var(--muted);
}
.phone-hint {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1.6em;
}

/* ---- «скопировано» по клику на номер ---- */
.phone { position: relative; }
.phone.is-copied::after {
  content: 'Скопировано';
  position: absolute;
  right: 10px;
  bottom: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--moss-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
  animation: phone-pop 1.4s var(--ease);
}
@keyframes phone-pop {
  0%   { opacity: 0; transform: translateY(4px); }
  15%  { opacity: 1; transform: translateY(-4px); }
  75%  { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-9px); }
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  background: var(--paper);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.page-content table td, .page-content table th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.page-content table tr:last-child td { border-bottom: 0; }

.page-content img { border-radius: var(--r-m); box-shadow: var(--sh-1); }

.page-content iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-m);
  box-shadow: var(--sh-2);
  margin-bottom: 1.6em;
  background: var(--cream-2);
}

.page-content blockquote {
  margin: 0 0 1.6em;
  padding: 22px 28px;
  background: var(--terra-soft);
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  font-family: var(--font-display);
  font-style: italic;
}

/* Ссылки внутри текста */
.page-content a:not(.btn):not([class*="thumb"]) {
  background-image: linear-gradient(var(--terra), var(--terra));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .25s var(--ease);
  padding-bottom: 1px;
}
.page-content a:not(.btn):not([class*="thumb"]):hover {
  background-size: 100% 2px;
}

/* Хлебные крошки */
.breadcrumbs {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--terra); }
.breadcrumbs .menu-current > a { color: var(--ink); font-weight: 600; }

.return_back {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
}
.return_back a { color: var(--muted); }
.return_back a:hover { color: var(--terra); }

/* ------------------------------------------------------------- подвал --- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: 64px 0 34px;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1em;
  letter-spacing: .02em;
}

.site-footer p { margin: 0 0 .6em; }

.footer-brand img {
  height: 82px;
  margin-bottom: 18px;
  opacity: .95;
}
.footer-tagline { font-family: var(--font-hand); font-size: 1.35rem; color: var(--gold); }

.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .5em; }
.footer-nav a { color: rgba(255, 255, 255, .68); }
.footer-nav a:hover { color: var(--gold); padding-left: 4px; }
.footer-nav a { transition: color .25s var(--ease), padding-left .25s var(--ease); }

.footer-contacts a { color: #fff; font-weight: 600; }
.footer-contacts a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--gold); }

/* ------------------------------------------------- анимации появления --- */

.wow, .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.fadeInLeft  { transform: translateX(-38px); }
.fadeInRight { transform: translateX(38px); }
.fadeIn      { transform: none; }

.wow.is-visible, .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- адаптив --- */

@media (max-width: 1100px) {
  .nav a { padding: 9px 10px; font-size: .88rem; }
  .brand { height: 54px; }
}

@media (max-width: 900px) {
  :root { --header-h: 74px; }

  .nav-toggle { display: flex; }

  .nav-toggle { position: relative; z-index: 2; }

  .nav-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(250, 245, 236, .98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease),
                visibility .35s;
  }
  .nav-wrap.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .nav a,
  .site-header .nav a,
  .site-header.is-stuck .nav a {
    color: var(--ink);
    text-shadow: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    padding: 12px 24px;
  }
  .nav a:hover, .site-header.is-stuck .nav a:hover {
    background: var(--terra-soft);
    color: var(--terra);
  }
  .site-header .nav li.menu-current > a,
  .site-header.is-stuck .nav li.menu-current > a { color: var(--terra); }

  .band { padding: 68px 0; }
  .thumb-box5 { padding: 76px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .container { padding: 0 18px; }

  .hero { min-height: 92svh; padding-top: calc(var(--header-h) + 24px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .hero__actions .btn-default { justify-content: center; }
  .scroll-cue { display: none; }

  .band { padding: 56px 0; }
  .band--tight { padding: 44px 0; }

  .thumb-pad1 .thumbnail { padding: 30px 22px 26px; }
  .thumb-pad2 figure i { padding: 44px 18px 18px; }
  .thumb-pad2 figure i .title { font-size: 1.3rem; }

  .welcome .lead::first-letter { font-size: 2.6em; }

  .phone-card { min-width: 100%; }

  .page-content table,
  .page-content table tbody,
  .page-content table tr,
  .page-content table td { display: block; width: 100% !important; }
  .page-content table td { padding: 14px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------------------------------------- бережный режим --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .wow, .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-cue, .hero__wave, .thumb-box5 { display: none; }
  body { background: #fff; color: #000; }
}
