/* Aki Sushi Blog — design system per ТЗ лист «дизайн» */

:root {
  --header-bg: #FFFFFF;
  --header-border: #E5E5E5;
  --nav-text: #555555;
  --accent: #4A9A92;
  --dark-bg: #0D0D0D;
  --dark-text: #FFFFFF;
  --blog-bg: #262626;
  --blog-heading: #FFFFFF;
  --blog-text: #E6E6E6;
  --btn-blue: #4AA3CF;
  --btn-blue-hover: #3A8AB3;
  --arrow: #2F6F86;
  --footer-bg: #1F2023;
  --light-col-bg: #F7F7F7;
  --light-col-text: #222222;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #FFFFFF;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: 'Poppins', Arial, sans-serif; margin: 0 0 16px; }
h2.section-title { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 32px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  height: 60px;
}
.site-header .container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-title { display: block; }
.logo-accent { color: var(--accent); }
.logo small {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.2px;
}
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}
.main-nav ul li { position: relative; }
.main-nav ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px; top: 2px;
  width: 1px; height: 14px;
  background: var(--header-border);
}
.main-nav a {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-text);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.pill-btn {
  background: var(--accent);
  color: #fff !important;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-btn:hover { background: #3f857e; text-decoration: none; }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--dark-bg);
  color: var(--dark-text);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 60px 20px;
}
.hero-slides { position: relative; max-width: 800px; width: 100%; }
.hero-title {
  font-family: 'Caveat Brush', cursive;
  font-size: 90px;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 0 0 8px;
  line-height: 1;
}
.hero-sub {
  font-family: 'Kalam', cursive;
  font-style: italic;
  font-size: 18px;
  color: #fff;
  max-width: 560px;
  margin: 0 auto;
}
.hero-arrow {
  background: none; border: none; color: var(--accent);
  font-size: 20px; cursor: pointer; opacity: 0.7;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-arrow:hover { opacity: 1; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: #555; cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--accent); }

.hero-static { background: #fff; text-align: center; padding: 28px 20px; }
.hero-static-title {
  font-size: 26px;
  margin: 0;
  color: #222;
}

/* ---------- Intro text (home) ---------- */
.intro-text { max-width: 760px; margin: 48px auto; text-align: center; color: #333; }

/* ---------- Locales tiles (home) ---------- */
.locales-section { padding: 48px 0; }
.locales-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.locale-tile { position: relative; display: block; border-radius: 8px; overflow: hidden; color: #fff !important; }
.locale-tile img { aspect-ratio: 4/3; object-fit: cover; height: auto; }
.locale-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 24px 14px 12px;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
}
.locale-tile:hover { text-decoration: none; opacity: 0.92; }

/* ---------- Blog / post grid section ---------- */
.blog-section, .post-grid-section {
  background: var(--blog-bg);
  color: var(--blog-text);
  padding: 48px 40px;
}
.blog-section .section-title, .post-grid-section .section-title { color: var(--blog-heading); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.post-card {
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card-img img { aspect-ratio: 16/10; object-fit: cover; height: auto; }
.post-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h3 { font-size: 18px; margin: 0; }
.post-card-body h3 a { color: #fff; }
.post-card-body .excerpt { font-size: 14px; color: var(--blog-text); flex: 1; margin: 0; }
.btn-blue {
  display: inline-block; align-self: flex-start;
  background: var(--btn-blue); color: #fff !important;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  padding: 10px 16px; border-radius: 4px;
}
.btn-blue:hover { background: var(--btn-blue-hover); text-decoration: none; }

.post-grid-light { grid-template-columns: repeat(3, 1fr); }
.post-grid-light .post-card { background: #fff; border: 1px solid #E5E5E5; }
.post-grid-light .post-card-body h3 a { color: #1a1a1a; }
.post-grid-light .post-card-body .excerpt { color: #555; }

.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }
.pagination .btn {
  background: transparent; border: 1px solid var(--arrow); color: var(--blog-heading);
  padding: 8px 18px; border-radius: 4px; font-size: 14px;
}
.pagination .btn:hover { background: var(--arrow); text-decoration: none; }

/* ---------- Carta band (home) ---------- */
.carta-band { background: #fff; padding: 56px 20px; }
.carta-band .inner { display: flex; align-items: center; gap: 32px; max-width: 900px; margin: 0 auto; }
.carta-band img { width: 220px; height: auto; border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.carta-band .text { flex: 1; }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 14px;
}
.btn:hover { background: #3f857e; text-decoration: none; }

/* ---------- Dark page banner (internal pages) ---------- */
.page-banner { background: var(--dark-bg); color: #fff; padding: 36px 0 28px; }
.page-banner h1 { color: #fff; font-size: 30px; margin: 10px 0 0; }
.breadcrumbs { font-size: 13px; color: #aaa; }
.breadcrumbs a { color: #ccc; }
.breadcrumbs .sep { margin: 0 6px; color: #777; }

/* ---------- Article column ---------- */
.article-col { max-width: 760px; margin: 0 auto; padding: 40px 0; background: var(--light-col-bg); }
.article-col { padding-left: 24px; padding-right: 24px; color: var(--light-col-text); }
.article-col h2 { font-size: 24px; margin-top: 32px; }
.article-col h3 { font-size: 19px; }
.article-col p { margin: 0 0 16px; }
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.article-col table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; font-size: 15px; }
.article-col table th, .article-col table td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.article-col table th { background: #EFEFEF; }
.article-col ul, .article-col ol { margin: 0 0 16px; padding-left: 22px; }
.article-photo { border-radius: 8px; margin: 0 0 24px; object-fit: cover; width: 100%; height: auto; }
.article-photo.ratio-16-9 { aspect-ratio: 16/9; }
.article-photo.ratio-4-3 { aspect-ratio: 4/3; }
.article-meta { font-size: 13px; color: #777; margin: 0 0 14px; }
.article-meta a { color: #777; text-decoration: underline; }
.disclaimer-note {
  font-size: 13px; font-style: italic; color: #666; background: #EFEFEF;
  border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 20px;
}
.en-resumen {
  background: #EAF4F2; border: 1px solid #CFE6E2; border-radius: 6px;
  padding: 18px 20px; margin: 28px 0;
}
.en-resumen h3 { margin-top: 0; color: var(--accent); font-size: 17px; }

.lire-aussi { margin-top: 40px; padding-top: 24px; border-top: 1px solid #ddd; }
.lire-aussi h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.lire-aussi ul { list-style: none; padding: 0; margin: 0; }
.lire-aussi li { margin-bottom: 8px; }
.lire-aussi a { font-weight: 600; }

/* ---------- Simple pages / contact ---------- */
.simple-page { }
.contact-form { max-width: 520px; margin-top: 16px; }
.contact-form div { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 15px;
}
.contact-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; }
.contact-form .consent input { width: auto; }

.cta-band { background: #fff; border-top: 1px solid #eee; padding: 40px 0; text-align: center; }
.cta-band .text { max-width: 600px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #ccc; padding: 40px 0; text-align: center; }
.footer-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; }
.icon-circle {
  width: 40px; height: 40px; border-radius: 50%; background: #F2F2F2;
  display: flex; align-items: center; justify-content: center;
}
.icon-circle svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; }
.footer-links { list-style: none; display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #666; }
.footer-links a { color: #fff; text-decoration: underline dotted; font-size: 14px; }
.footer-links-sub { margin-top: 8px; font-size: 12px; }
.footer-links-sub a { color: #bbb; }
.footer-disclaimer { font-size: 12px; color: #999; margin: 20px 0 6px; max-width: 480px; margin-left: auto; margin-right: auto; }
.footer-copy { font-size: 12px; color: #777; margin: 0; }

/* ---------- Error pages ---------- */
.error-page main { background: var(--dark-bg); }
.error-screen {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 60px 20px;
}
.error-screen h1 { font-family: 'Caveat Brush', cursive; font-size: 100px; color: var(--accent); margin: 0; }
.error-sub { font-size: 20px; margin: 0 0 12px; }
.error-text { max-width: 480px; color: #ccc; margin-bottom: 28px; }
.error-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-grid, .post-grid-light, .locales-tiles { grid-template-columns: repeat(2, 1fr); }
  .carta-band .inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .burger { display: block; }
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--header-border); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .main-nav ul li:not(:last-child)::after { display: none; }
  .pill-btn { margin-top: 14px; text-align: center; }
  .post-grid, .post-grid-light, .locales-tiles { grid-template-columns: 1fr; }
  .hero-title { font-size: 56px; }
  .blog-section, .post-grid-section { padding: 36px 16px; }
  .article-col { padding-left: 16px; padding-right: 16px; }
}
