/*
Theme Name: Модная площадь
Theme URI: https://example.com/
Author: Your Team
Description: Одностраничная тема для офлайн-магазина женской одежды «Модная площадь» (Мирный). Без онлайн-продаж.
Version: 1.0.0
Text Domain: modnaya-ploshchad
*/

/* Font Awesome (для иконок в блоке доверия) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/* Базовые переменные и типографика */
:root{
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --line: #e7e2da;

  --accent: #3b3b3b;
  --accent-2: #bfae9d;

  --radius: 16px;
  --shadow: 0 10px 28px rgba(0,0,0,.06);

  --container: 1100px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;

  --fs-1: 34px;
  --fs-2: 20px;
  --fs-3: 16px;

  --lh: 1.5;
}

@media (min-width: 768px){
  :root{
    --fs-1: 52px;
    --fs-2: 22px;
    --fs-3: 17px;
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-3);
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }
p{ margin: 0 0 12px; }
h1,h2,h3{ margin: 0 0 12px; line-height: 1.2; letter-spacing: -0.02em; }
h1{ font-size: var(--fs-1); }
h2{ font-size: 28px; }
@media (min-width: 768px){ h2{ font-size: 34px; } }

.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link{
  position:absolute;
  left:-9999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px;
  width:auto; height:auto;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  min-width: 160px;
}
.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.brand-title{
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
}

/* Nav */
.primary-nav{
  margin-left: auto;
  display:none;
}
@media (min-width: 960px){
  .primary-nav{ display:block; }
}
.primary-nav ul{
  display:flex;
  gap: 18px;
  list-style:none;
  padding:0;
  margin:0;
}
.primary-nav a{
  text-decoration:none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.primary-nav a:hover,
.primary-nav a:focus{
  color: var(--text);
  background: rgba(191,174,157,.18);
  outline: none;
}

/* Header contacts */
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.header-phone{
  text-decoration:none;
  font-weight: 650;
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.header-phone small{
  display:block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 650;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(255,255,255,.7); }

/* Sections */
.section{
  padding: 34px 0;
}
@media (min-width: 768px){
  .section{ padding: 56px 0; }
}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.muted{ color: var(--muted); }

/* ===== HERO full width ===== */
.hero--full{
  position: relative;
  padding: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--full::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--hero-overlay, rgba(0,0,0,.22));
  pointer-events:none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  min-height: var(--hero-min-h, 80vh);
  display: grid;
  align-items: center;
  padding: 28px 0;
}
@media (min-width: 768px){
  .hero-inner{
    min-height: var(--hero-min-h, 82vh);
    padding: 56px 0;
  }
}
.hero-panel{
  width: min(100%, 740px);
  margin-inline: auto;
  border-radius: 22px;
  border: 1px solid rgba(231,226,218,.9);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  background: var(--hero-panel-bg, rgba(255,255,255,.86));
  text-align: center;
}
@media (min-width: 768px){
  .hero-panel{ padding: 38px 28px; }
}
.hero-panel h1{
  color: var(--hero-title, var(--text));
  margin-bottom: 12px;
}
.hero-panel .hero-subtitle{
  color: var(--hero-subtitle, var(--muted));
  font-size: var(--fs-2);
  margin: 0 0 18px;
}
.hero-actions{
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* ===== Trust points ===== */
.trust .points{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width:768px){ .trust .points{ grid-template-columns: 1fr 1fr; gap: 14px; } }
.point{ display:flex; gap: 12px; align-items:flex-start; padding: 16px; }
.point .icon{
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(191,174,157,.22);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 auto;
  color: var(--accent);
}
.point .icon i{ font-size: 20px; }
.point .text{ font-size: 18px; }

/* ===== Videos ===== */
.video-grid{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width:768px){ .video-grid{ grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.video-card{ overflow:hidden; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.video-vertical{
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #f1ede8;
  display:block;
}
.video-embed{
  width:100%;
  aspect-ratio: 9 / 16;
  border:0;
  display:block;
  background:#f1ede8;
}
.video-note{ color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ===== Assortment (cards with background image) ===== */
.assort .items{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width:768px){ .assort .items{ grid-template-columns: 1fr 1fr; gap: 14px; } }

.assort-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  min-height: 220px;
}

.assort-card.has-bg{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.assort-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.38) 100%);
  pointer-events:none;
}

.assort-card .content{
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 16px;
  display: grid;
  align-content: end;
}

.assort-card .panel{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(231,226,218,.9);
  border-radius: 16px;
  padding: 14px 14px 12px;
}

.assort-card h3{
  font-size: 20px;
  margin: 0 0 8px;
}
.assort-card p{
  margin: 0;
  color: var(--muted);
}

@media (min-width:768px){
  .assort-card{ min-height: 260px; }
  .assort-card .content{ padding: 18px; }
  .assort-card .panel{ padding: 16px; }
}

/* ===== Gallery ===== */
.gallery-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (min-width:768px){ .gallery-grid{ grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery-grid a{
  display:block; border-radius: 16px; overflow:hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background:#fff;
}
.gallery-grid img{ width:100%; height:100%; object-fit: cover; aspect-ratio: 1 / 1; }

/* ===== Reviews ===== */
.reviews .list{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width:768px){ .reviews .list{ grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.review{ padding: 18px; }
.review .name{ font-weight: 700; margin-bottom: 8px; }
.review .text{ color: var(--muted); margin:0; }

/* ===== Contacts ===== */
.contacts-wrap{ display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
@media (min-width:900px){ .contacts-wrap{ grid-template-columns: 1.05fr .95fr; gap: 14px; } }
.contacts-card{ padding: 18px; }
.kv{ display:grid; gap: 16px; }
.kv h3{ font-size: 18px; margin: 0 0 6px; }
.kv .v{ color: var(--muted); white-space: pre-line; }
.contact-links{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
.map-card{ overflow:hidden; }
.entrance{ border-radius: 18px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); background:#fff; margin-bottom: 12px; }
.entrance img{ width:100%; height:auto; display:block; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 14px;
}