/* ══════════════════════════════════════════════════
   FRAMEOPT.BY — оптовые поставки фоторамок и альбомов
   Дизайн-система: тёплая эко-палитра, светлая, премиальная
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --paper:    #FBF8F3;
  --cream:    #F4EFE5;
  --sand:     #EDE5D6;
  --line:     #E3DACA;
  --line-sf:  #EFE8DC;
  --ink:      #2C2721;
  --body:     #635A4E;
  --muted:    #8B8175;
  --brass:    #A98352;
  --brass-dk: #8A6939;
  --brass-lt: #C9AC7E;
  --white:    #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap: 1200px;
  --r:    4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--brass-dk); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
h1,h2,h3,h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── LAYOUT ── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sec { padding: clamp(60px, 8vw, 110px) 0; }
.sec--cream { background: var(--cream); }
.sec--sand  { background: var(--sand); }
.sec--tight { padding: clamp(44px, 5vw, 70px) 0; }

/* ── ТИПОГРАФИКА ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
  display: block;
}
.h-xl { font-size: clamp(38px, 6.2vw, 74px); letter-spacing: -.015em; }
.h-lg { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.01em; }
.h-md { font-size: clamp(22px, 2.6vw, 30px); }
.h-sm { font-size: 20px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.sec-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head p { margin-top: 18px; }

/* ── КНОПКИ ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: var(--brass-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(138,105,57,.55); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-dk); background: rgba(255,255,255,.6); }
.btn--sm { padding: 11px 22px; font-size: 13px; }

/* ── ШАПКА ── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,243,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(44,39,33,.5); }
.hdr__in { display: flex; align-items: center; gap: 34px; height: 78px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark { width: 26px; height: 30px; flex-shrink: 0; }
.logo__mark rect { fill: none; stroke: var(--brass); }
.logo__txt { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: .01em; line-height: 1; }
.logo__txt span { color: var(--brass); font-weight: 500; }
.logo__sub { display: block; font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--brass); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--brass-dk); }

.hdr__cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav__tel { display: none; }
.hdr__tel { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hdr__tel:hover { color: var(--brass-dk); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: var(--r); cursor: pointer; padding: 0; margin-left: auto; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); margin: 3.5px auto; transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── ГЕРОЙ ── */
.hero { position: relative; padding: clamp(70px, 10vw, 130px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(201,172,126,.20), transparent 62%),
    radial-gradient(52% 62% at 8% 82%, rgba(237,229,214,.75), transparent 60%);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--brass-dk); }
.hero__note { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.hero__note::before { content: ''; width: 34px; height: 1px; background: var(--brass-lt); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero__art figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line-sf); box-shadow: 0 22px 50px -30px rgba(44,39,33,.42); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.hero__art figure:nth-child(1) { transform: translateY(-16px); }
.hero__art figure:nth-child(2) { transform: translateY(16px); }

/* ── МЕТРИКИ ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--paper); padding: 30px 26px; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 9px; }
.stats span { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: block; }

/* ── СЕТКА КАРТОЧЕК ── */
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line-sf);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 26px 48px -32px rgba(44,39,33,.45); }
.card__img { background: var(--cream); overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 22px; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.045); }
.card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: 15px; margin-bottom: 18px; }
.card__cnt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.card__link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--brass-dk); display: inline-flex; align-items: center; gap: 7px; }
.card__link::after { content: '→'; transition: transform .25s var(--ease); }
.card:hover .card__link::after { transform: translateX(5px); }

/* ── ПРЕИМУЩЕСТВА ── */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feat { background: var(--paper); padding: clamp(28px, 3.2vw, 40px); }
.feat__n { font-family: var(--serif); font-size: 13px; color: var(--brass); letter-spacing: .1em; margin-bottom: 16px; display: block; }
.feat h3 { font-size: 19px; margin-bottom: 10px; }
.feat p { font-size: 14.5px; margin: 0; }
.sec--cream .feat { background: var(--cream); }

/* ── ГАЛЕРЕЯ ── */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal figure { margin: 0; background: var(--white); border: 1px solid var(--line-sf); border-radius: var(--r); overflow: hidden; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; transition: transform .5s var(--ease); }
.gal figure:hover img { transform: scale(1.06); }

/* ── СПИСКИ ── */
.checks li {
  position: relative; padding-left: 32px; margin-bottom: 15px; font-size: 15.5px;
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 15px; height: 8px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}
.checks li b { color: var(--ink); font-weight: 700; }

.terms { border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.terms dd { margin: 0; font-size: 15.5px; }

/* ── БРЕНДЫ ── */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands li {
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--body); background: var(--paper);
  letter-spacing: .02em;
}

/* ── ПЛАШКА ПРИЗЫВА ── */
.cta { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(38px, 5vw, 66px); text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(58% 78% at 50% 0%, rgba(201,172,126,.24), transparent 68%); }
.cta > * { position: relative; }
.cta p { max-width: 56ch; margin: 18px auto 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ── КОНТАКТЫ ── */
.cnt { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.cnt__box { background: var(--white); border: 1px solid var(--line-sf); border-radius: var(--r); padding: clamp(26px, 3vw, 38px); }
.cnt__box h3 { font-size: 18px; margin-bottom: 16px; }
.cnt__box a { font-size: 19px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.cnt__box a:hover { color: var(--brass-dk); }
.cnt__box p { font-size: 15px; margin: 0; }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; line-height: 0; background: var(--cream); }
.map iframe { width: 100%; height: 420px; border: 0; }
.map__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ── ФОРМА ── */
.frm { background: var(--white); border: 1px solid var(--line-sf); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.frm__row { margin-bottom: 18px; }
.frm label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: .01em; }
.frm label span { color: var(--brass); }
.frm input, .frm textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.frm textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.frm input::placeholder, .frm textarea::placeholder { color: #B2A797; }
.frm input:focus, .frm textarea:focus { outline: 0; border-color: var(--brass-lt); box-shadow: 0 0 0 3px rgba(201,172,126,.22); }
.frm input:user-invalid { border-color: #C08A5A; }
.frm button { width: 100%; justify-content: center; margin-top: 6px; }
.frm__note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }
.frm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── СТРАНИЦА-СООБЩЕНИЕ ── */
.msg { min-height: 56vh; display: flex; align-items: center; }
.msg__box { max-width: 620px; margin: 0 auto; text-align: center; }
.msg__box p { margin-top: 18px; }
.msg__box .btn { margin-top: 26px; }

/* ── ПОДВАЛ ── */
.ftr { background: var(--cream); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 0; }
.ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.ftr h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ftr li { margin-bottom: 10px; font-size: 14.5px; }
.ftr a { color: var(--body); }
.ftr a:hover { color: var(--brass-dk); }
.ftr__about { font-size: 14.5px; max-width: 34ch; margin-top: 18px; }
.ftr__bot { border-top: 1px solid var(--line); padding: 24px 0 30px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ── ХЛЕБНЫЕ КРОШКИ + ШАПКА СТРАНИЦЫ ── */
.phead { position: relative; padding: clamp(46px, 6vw, 84px) 0 clamp(34px, 4vw, 54px); overflow: hidden; }
.phead::before { content: ''; position: absolute; inset: 0; background: radial-gradient(52% 76% at 82% 10%, rgba(201,172,126,.17), transparent 64%); }
.phead > * { position: relative; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brass-dk); }
.crumbs span { margin: 0 8px; opacity: .5; }
.phead p { margin-top: 20px; }

/* ── ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ── АДАПТИВ ── */
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; }
  .grid--4, .gal { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: block; }
  .hdr__in { height: 66px; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 28px 22px; margin: 0;
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line-sf); font-size: 16px; }
  .nav.is-open .nav__tel { display: block; border-bottom: 0; font-weight: 700; color: var(--brass-dk); }
  .nav.is-open a::after { display: none; }
  .grid--3, .grid--2, .cnt { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .grid--4, .gal { grid-template-columns: repeat(2, 1fr); }
  .feats, .stats { grid-template-columns: 1fr; }
  .hero__btns .btn, .cta__btns .btn { width: 100%; justify-content: center; }
  .ftr__top { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
