/*
Theme Name: Dacha Uchastok
Theme URI: https://dacha.pesok.zhadan.life/
Description: Свой скин песочницы — визуал 1в1 с дача-участок.рф (Wix)
Version: 1.3.4
Text Domain: dacha-uchastok
*/

:root {
  --ink: #101a1a;
  --muted: #3a4540;
  --brand: #84b524;
  --nav-link: #1f4d48;
  --cyan: #00becc;
  /* Снимок оригинала 1440: страница и полосы — #dbfdff, не мятный #eef8f6 */
  --cyan-bar: #dbfdff;
  --lime: #aee548;
  --cookie: #22a048;
  --sand: #dbfdff;
  --line: #c8eef1;
  --bg: #dbfdff;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: "PT Serif", Georgia, serif;
  /* Как на uKit: сетка 12 кол на всю ширину, контент/меню 1140 */
  --content-max: 1140px;
  --page-side: calc((100% - var(--content-max)) / 2);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.sandbox-note {
  background: #fff8e8;
  border-bottom: 1px solid #f0e0b0;
  color: #6a5518;
  padding: .35rem 1rem;
  font-size: .75rem;
  text-align: center;
}

.site-header { background: #fff; }
/* Шапка = 12 колонок на всю ширину: 1 logo + 5 brand + 4 meta + 2 yt */
.topbar {
  width: 100%;
  margin: 0;
  padding: .55rem 0;
  display: grid;
  grid-template-columns: 1fr 5fr 4fr 2fr;
  align-items: center;
  column-gap: 0;
}
.col-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .5rem;
}
.col-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.col-brand {
  text-align: center;
  padding: .35rem 1rem;
  min-width: 0;
}
.col-brand .name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: .85;
  font-weight: 700;
  font-style: italic;
  color: var(--brand);
}
.col-brand .name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}
.col-brand .slogan {
  margin: .35rem 0 0;
  font-size: .9rem;
  font-style: italic;
  font-weight: 700;
  color: var(--brand);
}
.col-meta {
  text-align: left;
  padding: .35rem 1rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.45;
  font-style: italic;
}
.col-meta .phone a {
  color: var(--brand);
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}
.col-yt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .35rem 1.25rem .35rem .5rem;
}
.yt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--cyan);
  color: #fff;
  flex: 0 0 auto;
}
.yt:hover { opacity: .9; text-decoration: none; }
.yt svg { width: 18px; height: 18px; fill: currentColor; }

.nav {
  background: var(--cyan-bar);
  border-top: 1px solid #c8eef1;
  border-bottom: 1px solid #c8eef1;
}
.nav .wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
  display: flex;
}
.nav > .wrap > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  /* Как uKit: пункты по содержимому + равные поля (space-around) */
  justify-content: space-around;
  align-items: stretch;
}
.nav > .wrap > ul > li {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}
.nav a {
  color: var(--nav-link);
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .85rem 1.1rem;
  display: inline-block;
  text-decoration: none;
}
.nav a:hover,
.nav .current-menu-item > a,
.nav [aria-current="page"] {
  color: var(--cyan);
  box-shadow: 0 -4px 0 0 var(--cyan) inset;
  text-decoration: none;
}
.nav .menu-item-has-children > a::after {
  content: " ▾";
  font-size: .75em;
  opacity: .75;
}
.nav .sub-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 30;
}
.nav .sub-menu a {
  display: block;
  padding: .45rem .9rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { display: block; }

.hero {
  width: 100%;
  height: min(52vw, 478px);
  min-height: 220px;
  background: center / cover no-repeat #cde;
  display: block;
}

.band {
  background: var(--sand);
  padding: 1.8rem max(1rem, var(--page-side)) 2rem;
}
.intro {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.intro h2 {
  margin: 0 0 .9rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.375rem); /* оригинал ~54px */
  font-weight: 700;
  line-height: 1.24;
}
.intro p {
  margin: 0 auto;
  max-width: var(--content-max);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  /* На оригинале абзац широкий и слева, заголовок по центру */
  text-align: left;
}

.catalog {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.75rem 0 1rem;
}
.catalog > h2 {
  margin: 0 0 1.1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.9vw, 2.625rem); /* оригинал ~42px */
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e8f3f0;
  display: block;
}
.card .body {
  padding: .85rem .95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.card strong { font-size: .98rem; }
.price {
  color: var(--brand);
  font-weight: 700;
  font-size: .92rem;
}
.more { font-size: .86rem; margin-top: auto; color: var(--muted); }

.prices {
  max-width: var(--content-max);
  margin: 1.5rem auto 2.2rem;
  padding: 0;
}
.prices h2 {
  margin: 0 0 .9rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.9vw, 2.625rem);
}
.prices table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.prices th,
.prices td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prices th {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.prices tr:nth-child(even) td { background: rgba(22, 222, 169, .18); }
.prices td:last-child {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.content {
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content h1 { color: var(--brand); }

.site-footer {
  background: #2f4a2f;
  color: #e8f0ea;
  padding: 1.5rem 1.25rem 5.5rem;
  font-size: .92rem;
}
.site-footer .wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
}
.site-footer a { color: #fff; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--cookie);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 0 20px rgba(0,0,0,.15);
}
.cookie .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie p { margin: 0; flex: 1 1 240px; font-size: .9rem; }
.cookie a { color: #fff; font-weight: 700; text-decoration: underline; }
.cookie[hidden] { display: none !important; }
.cookie button {
  background: var(--lime);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "logo brand"
      "meta meta"
      "yt yt";
  }
  .col-logo { grid-area: logo; }
  .col-brand { grid-area: brand; text-align: left; }
  .col-meta { grid-area: meta; padding: .5rem 1rem; }
  .col-yt { grid-area: yt; justify-content: flex-start; padding: .25rem 1rem .75rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav > .wrap > ul { flex-wrap: wrap; }
  .nav > .wrap > ul > li { flex: 1 1 50%; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 64px 1fr; }
  .col-brand .name { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .hero { height: 220px; }
  .intro p { text-align: left; }
  .band { padding-left: 1rem; padding-right: 1rem; }
  .nav > .wrap > ul > li { flex: 1 1 100%; }
}
