/*
Theme Name: ASV Мебель
Theme URI: https://asv-mebel.ru
Author: Студия мебели ASV
Description: Сайт-визитка студии мебели ASV в конструктивистском стиле
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: asv-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;600;700&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --red:   #c0392b;
  --black: #1a1a1a;
  --cream: #f2f0eb;
  --light: #e8e2d9;
  --grey:  #4a4a4a;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  left: 0; top: 0;
  width: 8px; height: 100%;
  background: var(--red);
  z-index: 200;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--black);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px 0 32px;
  border-bottom: 3px solid var(--red);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-bar { width: 6px; height: 32px; background: var(--red); }
.nav-logo-asv {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; color: var(--white);
  letter-spacing: 4px; line-height: 1;
}
.nav-logo-sub { font-size: 9px; color: #888; letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: #ccc; text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red); color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 20px; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: #a93226; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding: 120px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: 'ASV';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 380px;
  color: rgba(0,0,0,.04);
  position: absolute;
  right: -40px; bottom: -60px;
  line-height: 1;
  pointer-events: none;
}
.logo-block { position: relative; z-index: 2; }
.logo-top-bar { height: 10px; background: var(--black); }
.logo-inner {
  border-left: 10px solid var(--red);
  padding: 20px 24px 24px;
  background: var(--cream);
}
.logo-asv {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 130px; line-height: .9;
  color: var(--black); letter-spacing: 4px;
}
.logo-divider { height: 2px; background: var(--black); margin: 14px 0 10px; }
.logo-sub-row { display: flex; align-items: center; gap: 10px; }
.logo-sq { width: 12px; height: 12px; background: var(--red); flex-shrink: 0; }
.logo-sub-text {
  font-family: 'Oswald', sans-serif;
  font-size: 11px; letter-spacing: 4px;
  color: var(--black); text-transform: uppercase;
}
.hero-text { position: relative; z-index: 2; }
.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 42px;
  line-height: 1.1; color: var(--black); margin-bottom: 20px;
}
.hero-tagline span { color: var(--red); }
.hero-desc { font-size: 17px; color: var(--grey); margin-bottom: 36px; }
.btn-primary {
  display: inline-block; background: var(--red); color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  padding: 16px 36px; text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #a93226; transform: translateX(4px); }
.btn-outline {
  display: inline-block; border: 2px solid var(--black); color: var(--black);
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  padding: 14px 36px; text-decoration: none; margin-left: 16px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ── СЕКЦИИ ── */
section.asv-section { padding: 90px 48px; }
.sec-header { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.sec-bar { width: 6px; height: 48px; background: var(--red); flex-shrink: 0; }
.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px; letter-spacing: 3px; line-height: 1;
}
.sec-line { flex: 1; height: 2px; background: currentColor; }

/* ── О КОМПАНИИ ── */
#about { background: var(--black); color: var(--white); }
#about .sec-title { color: var(--white); }
#about .sec-line { background: var(--red); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about-text p { font-size: 17px; color: #ccc; line-height: 1.75; margin-bottom: 20px; }
.about-text p strong { color: var(--white); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stat { background: #2a2a2a; padding: 28px 20px; text-align: center; transition: background .2s; }
.stat:first-child { background: var(--red); }
.stat:hover { background: var(--red); }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: var(--white); line-height: 1; }
.stat-lbl { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.65); text-transform: uppercase; margin-top: 6px; }

/* ── КАТАЛОГ ── */
#catalog { background: var(--cream); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.catalog-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--light); cursor: pointer; }
.catalog-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.catalog-item:hover img { transform: scale(1.07); }
.catalog-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.85) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: opacity .3s;
}
.catalog-item:hover .catalog-overlay { opacity: 1; }
.catalog-name { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--white); letter-spacing: 2px; text-transform: uppercase; }
.catalog-desc { font-size: 12px; color: #ccc; margin-top: 4px; }

/* ── ОТЗЫВЫ ── */
#reviews { background: var(--light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.review-card { background: var(--white); padding: 32px 28px; position: relative; transition: transform .2s; }
.review-card:hover { transform: translateY(-4px); }
.review-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--light); transition: background .2s; }
.review-card:hover::before { background: var(--red); }
.review-stars { color: var(--red); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { font-size: 15px; color: var(--grey); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; background: var(--black); color: var(--white);
  font-family: 'Oswald', sans-serif; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-name { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: 1px; }
.review-meta { font-size: 11px; color: #aaa; letter-spacing: 1px; margin-top: 2px; }

/* ── КОНТАКТ ── */
#contact { background: var(--black); }
#contact .sec-title { color: var(--white); }
#contact .sec-line { background: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { font-size: 16px; color: #aaa; line-height: 1.8; }
.contact-info strong { color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  background: #2a2a2a; border: 1px solid #333;
  border-left: 3px solid var(--red);
  color: var(--white); font-family: 'PT Sans', sans-serif;
  font-size: 14px; padding: 14px 16px; outline: none; width: 100%;
  transition: background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { background: #333; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #666; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  background: var(--red); color: var(--white); border: none;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  padding: 16px 40px; cursor: pointer; transition: background .2s;
  align-self: flex-start;
}
.contact-form button:hover { background: #a93226; }
.form-note { font-size: 11px; color: #555; }
.form-success { color: #27ae60; font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 2px; display: none; }

/* ── FOOTER ── */
footer.site-footer {
  background: #111; padding: 40px 48px;
  border-top: 3px solid var(--red);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-bar { width: 5px; height: 28px; background: var(--red); }
.footer-logo-asv { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--white); letter-spacing: 4px; line-height: 1; }
.footer-logo-sub { font-size: 9px; color: #666; letter-spacing: 2px; text-transform: uppercase; }
.messengers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-label { font-size: 11px; color: #666; letter-spacing: 2px; text-transform: uppercase; }
.msg-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); transition: transform .15s, opacity .2s; border-radius: 2px;
}
.msg-btn:hover { transform: translateY(-2px); opacity: .85; }
.msg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.msg-wa  { background: #25D366; }
.msg-tg  { background: #229ED9; }
.msg-max { background: #7B3FE4; }
.footer-copy { font-size: 12px; color: #555; letter-spacing: 1px; }

/* ── АНИМАЦИИ ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── АДАПТИВ ── */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; padding: 90px 20px 60px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  section.asv-section { padding: 60px 20px; }
  nav.site-nav { padding: 0 20px 0 20px; }
  .nav-links { display: none; }
  footer.site-footer { flex-direction: column; align-items: flex-start; padding: 32px 20px; }
}
@media (max-width: 560px) {
  .catalog-grid, .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logo-asv { font-size: 90px; }
}
