/* MUKA OPTOM — «Пшеничный золотой» (утверждено владельцем). Палитра: кремовый #FBF5E9, светло-пшеничный #EAD3A9,
   золотисто-карамельный #C79B60 (только декор: линии, точки, свечения — как текст на креме контраст 2,3:1), глубокий коричневый
   #483019 (текст), коричневый #664626 (кнопки). Один мягкий многотональный градиент на всю страницу; секции без заливок и рамок.
   Заголовки — Cormorant Garamond, текст — Commissioner (кириллица и узбекская латиница). Контраст пар проверяется tools/test_site.py. */
:root {
  --cream: #FBF5E9; --wheat: #EAD3A9; --caramel: #C79B60;
  --ink: #483019; --text: #4F3A24; --muted: #6E5536; --eyebrow: #6F4E28;
  --btn: #664626; --btn-2: #553A1F; --btn-text: #FBF5E9;
  --card: #FFFDF8; --glass: rgba(255, 253, 248, .62);
  --line: rgba(72, 48, 25, .10);
  --sans: Commissioner, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gap: clamp(20px, 3vw, 36px);
  --r: 24px;
  --shadow: 0 18px 44px -30px rgba(72, 48, 25, .38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--cream); }
/* единое пространство: длинный градиент по всей высоте страницы (крайние тона — светлые, чтобы текст читался везде) */
body { margin: 0; color: var(--text); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 620px at 88% 2%, rgba(199, 155, 96, .26), transparent 62%),
    radial-gradient(900px 520px at 4% 30%, rgba(234, 211, 169, .55), transparent 65%),
    radial-gradient(1000px 600px at 96% 62%, rgba(234, 211, 169, .5), transparent 66%),
    radial-gradient(900px 520px at 10% 92%, rgba(199, 155, 96, .18), transparent 64%),
    linear-gradient(180deg, #FBF5E9 0%, #F7EBD3 22%, #FBF5E9 42%, #F5E6C9 64%, #FBF5E9 82%, #F3E2C2 100%); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
i { font-style: normal; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }

/* типографика */
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); line-height: .98; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; }
h3 { font: 600 1.12rem/1.3 var(--sans); }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 600; color: var(--eyebrow); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--caramel); }
.note { color: var(--muted); font-size: .93rem; margin-top: 1.8rem; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1.08em 1.9em; border-radius: 999px; border: 0;
  background: var(--btn); color: var(--btn-text); font: 600 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 26px -16px rgba(72, 48, 25, .7); transition: background .2s, transform .2s; }
.btn:hover { background: var(--btn-2); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(72, 48, 25, .35); }
.btn-line:hover { background: var(--btn); color: var(--btn-text); }
.btn-s { padding: .8em 1.25em; font-size: .9rem; white-space: nowrap; }
.btn-wide { width: 100%; padding: 1.15em; }
.link-tel { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(199, 155, 96, .7); padding-bottom: 2px; }
.link-tel:hover { border-color: var(--ink); }

/* шапка — прозрачная, со стеклом */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 233, .78); backdrop-filter: saturate(1.25) blur(14px); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 .98rem/1 var(--sans); letter-spacing: .2em; color: var(--ink); white-space: nowrap; }
.logo b { color: var(--eyebrow); font-weight: 600; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #E7C68D, var(--caramel)); position: relative; flex: none; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; left: 50%; top: 6px; width: 6px; height: 11px; border-radius: 50%; background: var(--btn); }
.logo-mark::before { transform: translateX(-95%) rotate(-28deg); }
.logo-mark::after { transform: translateX(-5%) rotate(28deg); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .94rem; color: var(--text); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.hdr-act { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.langs { display: inline-flex; gap: 2px; }
.langs a { padding: .3em .55em; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 999px; }
.langs a.on { color: var(--ink); background: var(--glass); }
.tel { font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }

/* первый экран — композиция из трёх кадров с мукой и пшеницей */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-offer { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.62; color: var(--text); max-width: 38ch; margin: 1.4rem 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 2.2rem; }
.conds { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 34px; }
.conds li { position: relative; padding-left: 20px; font-size: .97rem; color: var(--ink); font-weight: 500; }
.conds li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 4px rgba(199, 155, 96, .2); }
.hero-pic { margin: 0; position: relative; display: grid; grid-template-columns: 1fr .5fr; gap: 16px; align-items: center; }
.hero-pic::before { content: ""; position: absolute; inset: 6% -4% -6% 10%; border-radius: 48px; z-index: -1;
  background: radial-gradient(closest-side, rgba(199, 155, 96, .38), rgba(234, 211, 169, .2) 60%, transparent); filter: blur(6px); }
.hp-main img { width: 100%; border-radius: 32px; box-shadow: var(--shadow); }
.hp-side { display: grid; gap: 16px; }
.hp-side img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.hp-side img:first-child { transform: translateY(-14px); }
.hero-pic figcaption { position: absolute; left: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); background: rgba(251, 245, 233, .9); backdrop-filter: blur(6px);
  color: var(--ink); font-size: .86rem; font-weight: 600; padding: .55em 1.05em; border-radius: 999px; }
.hero-s { padding-bottom: clamp(24px, 3vw, 40px); }
.hero-s h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 18ch; }
.crumbs { padding-top: 22px; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(199, 155, 96, .6); }

/* секции — без заливок и жёстких границ, разделение воздухом */
.sec { padding: clamp(56px, 8vw, 108px) 0; }
.sec-top0 { padding-top: 0; }
.sec-tight { padding: 28px 0; }
.sec-tint { background: transparent; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.two { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gap); align-items: start; }
.prose p { font-size: 1.05rem; }
.cols3, .cols4 { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px var(--gap); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols3 > *, .cols4 > * { padding: 22px 0 6px; position: relative; }
.cols3 > *::before, .cols4 > *::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 2px; border-radius: 2px; background: var(--caramel); }
.aud p, .cols4 p { color: var(--muted); font-size: .96rem; margin: 0; }
.terms dt, .prose-cols h2 { font: 600 1.15rem/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; }
.terms dd { margin: 0; color: var(--text); font-size: .97rem; }
.steps span { font: 600 1.6rem/1 var(--serif); color: var(--eyebrow); }
.steps h3 { margin: 12px 0 8px; }

/* каталог: светлые карточки — упаковки хорошо видны */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-1, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -30px rgba(72, 48, 25, .45); }
.card-pic { display: block; aspect-ratio: 1; border-radius: calc(var(--r) - 8px); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-pic img { transform: scale(1.03); }
.card-body { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { margin: 0 0 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--eyebrow); font-weight: 600; }
.card h3 { font: 600 1.75rem/1.1 var(--serif); margin: 0 0 6px; }
.card-meta { margin: 0 0 16px; color: var(--muted); font-size: .94rem; }
.card-cta { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(199, 155, 96, .7); padding-bottom: 2px; }
.card-cta:hover { border-color: var(--ink); }
.card-cta i { display: inline-block; transition: transform .2s; } .card-cta:hover i { transform: translateX(4px); }
.dirs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.dirs a { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px; padding: .65em 1.2em; background: var(--glass); }
.dirs a:hover { background: var(--card); }

/* сорта */
.grades { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grade { background: var(--glass); border-radius: var(--r); padding: clamp(24px, 3vw, 38px); }
.grade h3 { font: 600 2rem/1.1 var(--serif); }
.grade p { color: var(--text); }
.grade a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(199, 155, 96, .7); }
.grade a:hover { border-color: var(--ink); }

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 40px 21px 0; font-weight: 500; font-size: 1.05rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 300; color: var(--eyebrow); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-right: 40px; }

/* форма */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gap); align-items: start; }
.contacts { margin-top: 32px; }
.tel-big { display: inline-block; font: 600 2rem/1.1 var(--serif); color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.contacts p { color: var(--muted); }
.form { background: var(--card); border-radius: 28px; padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.fld em { font-style: normal; color: var(--muted); font-weight: 400; }
.fld input, .fld textarea, .fld select { font: 400 1rem/1.4 var(--sans); padding: .85em 1em; border: 1px solid rgba(72, 48, 25, .16); border-radius: 14px; background: #FFFEFA; color: var(--text); width: 100%; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4em; }
.fld input::placeholder, .fld textarea::placeholder { color: #9C8668; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(199, 155, 96, .25); }
.fld.bad input { border-color: #A23B2A; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 18px; }
.chk input { margin-top: .25em; accent-color: var(--btn); width: 17px; height: 17px; flex: none; }
.chk a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .85em 1em; border-radius: 14px; font-weight: 500; }
.form-msg.ok { background: rgba(102, 70, 38, .09); color: var(--ink); }
.form-msg.bad { background: rgba(162, 59, 42, .08); color: #8A2F20; }

/* новости */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.news-grid article { background: var(--glass); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; }
.news-grid time { color: var(--muted); font-size: .82rem; }
.news-grid a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; margin: 8px 0 14px; line-height: 1.45; }
.news-grid a:hover { text-decoration: underline; text-decoration-color: var(--caramel); }
.news-grid .src { margin-top: auto; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

/* подвал — продолжение того же градиента */
.ftr { padding: 64px 0 96px; color: var(--muted); }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap); }
.ftr .logo { margin-bottom: 14px; }
.ftr-links { display: flex; flex-direction: column; gap: 9px; }
.ftr-links a { text-decoration: none; color: var(--text); }
.ftr-links a:hover { color: var(--ink); }
.copy { font-size: .84rem; }
.fab { display: none; }

/* планшет */
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 8px 24px 22px; gap: 0;
    box-shadow: 0 24px 40px -30px rgba(72, 48, 25, .4); }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav a:first-child { border-top: 0; }
  .hdr.open .nav { display: flex; }
  .burger { display: inline-block; }
  .tel { display: none; }
}
@media (max-width: 1100px) {
  .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-in, .two, .form-wrap { grid-template-columns: 1fr; }
  .hero-pic { max-width: 560px; margin-inline: auto; width: 100%; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
  .fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 50; justify-content: center; padding: 1.05em; border-radius: 999px;
    background: var(--btn); color: var(--btn-text); font-weight: 600; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(72, 48, 25, .7); }
}
/* телефон */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hdr-in { height: 64px; gap: 12px; }
  .nav { top: 64px; }
  .btn-s { display: none; }
  .hero-cta .btn { width: 100%; }
  .conds { grid-template-columns: 1fr; gap: 10px; margin-top: 1.8rem; }
  .hero-pic { grid-template-columns: 1fr .52fr; gap: 10px; }
  .hp-main img { border-radius: 24px; }
  .hp-side { gap: 10px; } .hp-side img { border-radius: 18px; } .hp-side img:first-child { transform: none; }
  .grid, .grid-1, .grid-2, .grid-3, .news-grid, .cols4, .grades { grid-template-columns: 1fr; }
  .card { max-width: 460px; width: 100%; margin-inline: auto; }
  .row2 { grid-template-columns: 1fr; }
  .faq summary { font-size: 1rem; }
}
