﻿:root{
  --bg: #F5F0E6;
  --ink: #2b3a52;
  --muted: #6b7a8d;
  --accent: #1e3a5f;
  --accent-2: #152d4a;
  --card: rgba(255,255,255,.55);
  --border: rgba(30,58,95,.25);
  --shadow: 0 12px 40px rgba(0,0,0,.10);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.35;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* Все заголовки — мягкий тёмно-синий */
h1, h2, h3,
.feature-title,
.section-title,
.dish-name,
.dish-modal-name,
.panel-title,
.stat-num {
  color: #2b3a52;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(245,240,230,.82);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand{
  display:flex;
  align-items:center;
  min-width: 0;
  flex-shrink: 0;
}
.brand img{
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .15s ease;
  font-size: 14px;
}
.nav a:hover{
  border-color: var(--border);
  color: var(--ink);
  background: rgba(255,255,255,.55);
}
.nav a.active{
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(30,58,95,.25);
}
.nav a.nav-delivery,
.nav a.nav-delivery:hover {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 400;
}
.nav a.nav-delivery:hover {
  border-color: var(--border);
  color: var(--ink);
  background: rgba(255,255,255,.55);
}

/* Hero */
.hero{
  padding: 52px 0 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: stretch;
}
.headline{
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.35) 100%);
  box-shadow: var(--shadow);
}
.kicker{
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.headline h1{
  margin: 0 0 16px;
  font-size: clamp(30px, 3.8vw, 52px);
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--ink);
}
.headline p{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
}
.hero-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero logo */
.hero-logo-wrap{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 360px;
}
.hero-logo-wrap img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features */
.features-section{
  padding: 28px 0 0;
}
.features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 8px;
}
.feature-card{
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,58,95,.12);
}
.feature-icon{
  font-size: 15px;
  vertical-align: middle;
  margin-right: 4px;
}
.feature-title{
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-text{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
  cursor:pointer;
  box-shadow: 0 4px 14px rgba(30,58,95,.25);
}
.btn:hover{
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,58,95,.35);
}
.btn:active{ transform: translateY(0); box-shadow: none; }
.btn.secondary{
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.btn.secondary:hover{
  background: rgba(30,58,95,.08);
  border-color: var(--accent);
  box-shadow: none;
}

/* Sections */
.section{
  padding: 18px 0 52px;
}
.section-title{
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -.01em;
}
.subtle{
  color: var(--muted);
  margin: 0 0 18px;
}

/* Menu */
.menu-top{
  padding: 24px 0 8px;
}
.tabs{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tab{
  border: 1px solid var(--border);
  background: rgba(245,240,230,.7);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
  font-size: 13px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tab:hover{
  background: rgba(30,58,95,.08);
  border-color: var(--accent);
}
.tab.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(30,58,95,.25);
}
.menu-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(30,58,95,.13);
}

/* Modal */
.dish-modal-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dish-modal-overlay.open{ display: flex; }
.dish-modal{
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: modalIn .18s ease;
}
@keyframes modalIn{
  from{ opacity:0; transform: scale(.95); }
  to{ opacity:1; transform: scale(1); }
}
.dish-modal-img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.dish-modal-img-placeholder{
  width: 100%;
  height: 180px;
  background: rgba(30,58,95,.06);
}
.dish-modal-body{
  padding: 22px 24px 28px;
}
.dish-modal-name{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.dish-modal-desc{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.dish-modal-price{
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.dish-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .media{
  height: 190px;
  background: rgba(0,0,0,.05);
}
.card .media img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.card .body{
  padding: 14px 14px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.dish-name{
  font-weight: 700;
  letter-spacing: -.01em;
}
.dish-price{
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.empty{
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,.25);
}

/* Reviews/Contacts */
.embed-wrap{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.35);
  box-shadow: var(--shadow);
}
.responsive-iframe{
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
}
.responsive-iframe iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.meta-row{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}
.meta-row a{
  color: var(--accent);
  font-weight: 700;
}

.info-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.info{
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.info:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,95,.10);
}
.info-icon{
  font-size: 22px;
  margin-bottom: 8px;
}
.info .label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info .value{
  font-weight: 700;
  font-size: 15px;
}

/* Admin */
.admin-shell{
  padding: 24px 0 56px;
}
.admin-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
th, td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(30,58,95,.15);
  vertical-align: top;
  font-size: 13px;
}
th{
  text-align:left;
  color: var(--accent);
  background: rgba(30,58,95,.05);
  font-weight: 800;
}
tr:last-child td{ border-bottom: 0; }
.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(245,240,230,.7);
  font-weight: 700;
}
.row-actions{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-sm{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  cursor:pointer;
  font-weight: 700;
  color: var(--accent);
}
.btn-sm.danger{
  color: #7d1f1f;
  border-color: rgba(125,31,31,.25);
}
.btn-sm:hover{ background: rgba(30,58,95,.08); }
.btn-sm.danger:hover{ background: rgba(125,31,31,.10); }

.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.35);
  box-shadow: var(--shadow);
}
.field{ display:flex; flex-direction: column; gap: 6px; }
.field label{ font-size: 12px; color: var(--muted); font-weight: 700; }
.field input, .field select{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(245,240,230,.8);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  appearance: auto;
  -webkit-appearance: auto;
  width: 100%;
}
.field input:focus, .field select:focus{
  border-color: rgba(30,58,95,.55);
  box-shadow: 0 0 0 4px rgba(30,58,95,.10);
}
.form .full{ grid-column: 1 / -1; }

.footer{
  padding: 18px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-logo-wrap{ min-height: 240px; order: -1; }
  .features-grid{ grid-template-columns: 1fr 1fr; }
  .menu-grid{ grid-template-columns: repeat(2, 1fr); }
  .info-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .hero-grid{ gap: 16px; }
  .headline{ padding: 22px 18px; }
  .features-grid{ grid-template-columns: 1fr; }
  .menu-grid{ grid-template-columns: 1fr; }
  .header-inner{ align-items:center; }
  .nav{ justify-content:flex-start; }
  .form{ grid-template-columns: 1fr; }
}

