/*
Theme Name: Агрофирма Тургеневская
Theme URI: https://agroturg.ru/
Author: Агрофирма Тургеневская
Description: Блочная тема. Первый этап: главная, информационные страницы и 404.
Version: 0.8.198
Requires at least: 7.1
Requires PHP: 8.0
Text Domain: agroturg
*/

:root {
  --ink: #35204f;
  --brand: #6d42a9;
  --brand-dark: #4d2c7a;
  --lavender: #eee5fb;
  --green: #2f6f28;
  --green-light: #edf7ea;
  --paper: #fffdf7;
  --line: #e9e3d9;
  --muted: #716678;
  --body: 'Golos Text', sans-serif;
  --display: 'Literata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .16em; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wp-site-blocks { overflow: clip; }
.wp-site-blocks > * { margin-block-start: 0; }


.site-main, .customer-page { max-width: 1220px; padding: 48px 18px 80px; margin-inline: auto; }
.customer-page__title { max-width: 1220px; margin: 0 0 16px; font-size: clamp(2.125rem, 1.66rem + 1.905vw, 3.375rem); line-height: 1.12; }
.customer-page__intro { max-width: 1220px; margin: 0 0 42px; font-size: 1.5rem; line-height: 1.4; color: var(--muted); }
.customer-page > .wp-block-post-content { max-width: none; }
.customer-layout { display: grid !important; grid-template-columns: 248px minmax(0, 1fr); gap: 72px; margin: 0; max-width: none; align-items: start !important; }
.customer-layout > .wp-block-column { min-width: 0; }
.customer-sidebar { position: sticky; top: 112px; }
.customer-nav { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.customer-nav p { margin: 0; }
.customer-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
.customer-nav a:hover { color: var(--brand); }
.customer-sidebar__help { margin-top: 28px; color: var(--muted); }
.customer-content { min-width: 0; }
.customer-section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.customer-section h2[id] { scroll-margin-top: 120px; }
.customer-section h2 { margin: 0 0 20px; font-size: 2rem; line-height: 1.12; }
.customer-section h3 { margin: 28px 0 12px; font-size: 1.5rem; font-weight: 500; }
.customer-section p { max-width: 68ch; color: var(--muted); }
.customer-section p:last-child { margin-bottom: 0; }
.delivery-overview { position: relative; margin-bottom: 12px; padding: 32px 36px; border-radius: 16px; background: var(--lavender); }
.delivery-overview p { color: var(--brand-dark); }
.service-facts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
.service-facts h3 { font-size: 1rem; }
.service-facts p { margin-top: 0; }
.customer-section .wp-block-list { padding-left: 1.4em; }
.customer-section .wp-block-list li { padding-block: 9px; }
.customer-section .wp-block-details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.customer-section .wp-block-details summary { cursor: pointer; font-weight: 500; }
.customer-section .wp-block-details > p { margin: 14px 0 0; }
.customer-close { margin-top: 32px; }
.wp-block-button__link { min-height: 48px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button__link:hover { background: var(--brand-dark); }

.lost-page { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; width: min(1344px, calc(100% - 80px)); min-height: 600px; max-width: none; padding: 80px 0; margin-inline: auto; }
.lost-page > .lost-page__code, .lost-page > .lost-page__copy { width: 100%; max-width: none; margin: 0 !important; }
.lost-page__code { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--brand); font-size: clamp(150px, 19vw, 260px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.lost-page__zero { display: block; flex: none; width: .65em; height: .86em; border: 10px solid var(--lavender); border-radius: 50%; overflow: hidden; transform: rotate(-9deg); background: url('assets/images/lavender-field.jpg') 62% center / cover no-repeat; }
.lost-page__copy h1 { max-width: 13ch; margin: 0; font-size: clamp(2.125rem, 1.66rem + 1.905vw, 3.375rem); line-height: 1.12; }
.lost-page__copy p { color: var(--muted); font-size: 1.5rem; }
.lost-page__actions { gap: 24px; margin-top: 32px; }
.lost-page__actions .wp-block-button__link { gap: 12px; }
.lost-page__actions .wp-block-button__link::after { content: ''; display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.lost-page__actions .button--text .wp-block-button__link { padding-inline: 0; color: var(--ink); background: transparent; text-decoration: underline; }


.home-start { padding-top: 24px; }
.home-start > .wp-block-post-content { max-width: none; }
.home-start__hero { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; width: 100%; max-width: none !important; min-height: 520px; margin: 0; border-radius: 26px; overflow: hidden; background: var(--lavender); }
.home-start__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: clamp(32px, 5vw, 72px); min-width: 0; }
.home-start__copy h1 { margin: 0; font-size: clamp(2.375rem, 2rem + 2vw, 4rem); line-height: 1.08; }
.home-start__copy p { max-width: 28ch; margin: 0; font-size: 1.25rem; }
.home-start__copy .wp-block-buttons { margin-top: 12px; }
.home-start__media, .home-start__media figure { min-width: 0; height: 100%; margin: 0; }
.home-start__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-start__routes-title { margin: 58px 0 0; font-size: 2rem; }
.home-start__routes { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; max-width: none !important; margin: 20px 0 0; }
.home-start__routes .wp-block-column { min-width: 0; padding: 20px 24px; border-left: 1px solid var(--line); }
.home-start__routes .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.home-start__routes p { margin: 0; }
.home-start__routes a { display: block; min-height: 44px; font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.home-start__routes a:hover { color: var(--brand); }

.company-start { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; width: 100%; max-width: none !important; margin: 0; align-items: center !important; }
.company-start__copy { min-width: 0; }
.company-start__copy > p { max-width: 42ch; color: var(--muted); }
.company-start__copy .company-start__lead { margin: 0 0 24px; color: var(--ink); font: 400 clamp(1.75rem, 2.8vw, 2.75rem)/1.2 var(--display); }
.company-start__copy .wp-block-buttons { margin-top: 28px; }
.company-start__copy .button--text .wp-block-button__link { padding-inline: 0; color: var(--brand); background: transparent; text-decoration: underline; }
.company-start__media, .company-start__media figure { min-width: 0; margin: 0; }
.company-start__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.company-start__location { margin: 12px 0 48px; color: var(--muted); font-size: .875rem; }
.company-start__routes { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: none !important; margin: 0; border-top: 1px solid var(--line); }
.company-start__routes .wp-block-column { min-width: 0; padding: 24px; border-left: 1px solid var(--line); }
.company-start__routes .wp-block-column:first-child { padding-left: 0; border-left: 0; }
.company-start__routes h2 { margin: 0 0 12px; font-size: 1.375rem; }
.company-start__routes p { margin: 0; color: var(--muted); }
.company-overview { max-width: none !important; margin-top: 88px; padding: 48px; border-radius: 22px; background: var(--lavender); }
.company-overview > h2 { margin: 0 0 20px; font: 400 clamp(2rem, 3vw, 3rem)/1.13 var(--display); }
.company-overview > p { max-width: 75ch; color: var(--muted); }
.company-overview__columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; max-width: none !important; margin: 32px 0 0; }
.company-overview__columns h3 { margin: 0 0 12px; font-size: 1.375rem; }
.company-overview__columns p { max-width: 45ch; color: var(--muted); }
.company-overview__columns .wp-block-buttons { margin-top: 24px; }
.company-overview .button--green .wp-block-button__link { background: var(--green); }

@media (max-width: 900px) {
  .lost-page { width: calc(100% - 48px); }
  .customer-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .customer-sidebar { position: static; }
  .customer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
  .home-start__hero { min-height: 430px; }
  .home-start__copy { padding: 32px; }
  .home-start__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-start__routes .wp-block-column:nth-child(3) { border-left: 0; padding-left: 0; }
  .company-start { gap: 24px; }
  .company-start__routes { grid-template-columns: 1fr; }
  .company-start__routes .wp-block-column { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .company-overview__columns { gap: 24px; }
}
@media (max-width: 600px) {
  .site-main, .customer-page { padding-block: 24px 44px; }
  .customer-page__intro { margin-bottom: 24px; font-size: 1.25rem; }
  .customer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .customer-nav a { font-size: .875rem; }
  .customer-section { margin-bottom: 30px; padding-bottom: 30px; }
  .customer-section h2 { font-size: 1.75rem; }
  .customer-section h3 { font-size: 1.25rem; }
  .delivery-overview { padding: 24px 20px; }
  .service-facts { grid-template-columns: 1fr; gap: 8px; }
  .lost-page { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 36px); min-height: 0; padding: 48px 0 72px; }
  .lost-page__code { font-size: clamp(120px, 31vw, 190px); }
  .lost-page__copy p { font-size: 1.25rem; }
  .home-start { padding-top: 18px; }
  .home-start__hero { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .home-start__copy { padding: 28px 24px 32px; gap: 16px; }
  .home-start__copy h1 { font-size: clamp(2.125rem, 9vw, 3rem); }
  .home-start__copy p { font-size: 1rem; }
  .home-start__media { height: 280px; }
  .home-start__routes-title { margin-top: 40px; font-size: 1.75rem; }
  .home-start__routes { gap: 0 18px; }
  .home-start__routes .wp-block-column { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .home-start__routes a { font-size: 1rem; }
  .company-start { grid-template-columns: 1fr; }
  .company-start__location { margin-bottom: 28px; }
  .company-overview { margin-top: 44px; padding: 28px 22px; }
  .company-overview__columns { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
