/* Layout for /novyi-god/. Typography and colors follow the existing site. */
body.asny-page .wp-site-blocks > .asny { margin-block-start: 0; }
.asny {
  font-family: var(--wp--preset--font-family--sf-pro-display, "SF Pro Display"), Arial, sans-serif;
  color: var(--wp--preset--color--contrast, #111);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.asny *, .asny *::before, .asny *::after { box-sizing: border-box; }
.asny [hidden] { display: none !important; }
.asny h1, .asny h2, .asny h3, .asny p, .asny figure, .asny ul { margin: 0; }
.asny h1, .asny h2, .asny h3 { font-weight: 400; font-style: normal; letter-spacing: 0; color: inherit; }
.asny h1 {
  font-family: var(--wp--preset--font-family--bebas-neue-cyrillic, "Bebas Neue Cyrillic"), Arial, sans-serif;
  font-size: 34px;
  line-height: 1.1;
}
.asny h2 { font-family: inherit; font-size: 22px; line-height: 1.2; color: #4f5253; }
.asny h3 { font-family: inherit; font-size: 18px; line-height: 1.25; }
.asny a { font-family: inherit; color: inherit; text-decoration: none; }
.asny button, .asny input, .asny select { font-family: Arial, sans-serif; }
.asny button { cursor: pointer; }
.asny a:focus-visible, .asny button:focus-visible, .asny input:focus-visible, .asny select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.asny img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.asny .asny-container {
  width: calc(100% - 20px);
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-inline: auto;
}
/* Match the existing Contact Form 7 submit button: black, 6px corners. */
.asny .asny-button {
  display: inline-block;
  padding: 20px 30px;
  border: 0;
  border-radius: 6px;
  background: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  text-decoration: none;
}
.asny .asny-button:hover { background: #333; color: #fff; }
.asny .asny-button:disabled { opacity: .6; cursor: wait; }
.asny .asny-note { margin-top: 10px; color: #686868; font-size: 13px; line-height: 1.35; }
.asny .asny-hero { padding: 30px 0; }
.asny-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.asny .asny-hero-term { margin-top: 15px; font-size: 18px; }
.asny .asny-intro { margin-top: 15px; }
.asny .asny-benefits { padding-left: 18px; margin: 20px 0; }
.asny-benefits li + li { margin-top: 7px; }
.asny-hero-photo img { aspect-ratio: 4 / 3; }
.asny .asny-section { padding-block: 25px; scroll-margin-top: 20px; }
.asny-section-heading { margin-bottom: 20px; text-align: center; }
.asny-section-heading > p { max-width: 850px; margin: 15px auto 0; }
.asny-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.asny-product { display: flex; flex-direction: column; min-width: 0; padding-bottom: 15px; border-radius: 6px; background: #fff; }
.asny-product-image { display: block; aspect-ratio: 1.6; }
.asny-product-image img { border-radius: 6px 6px 0 0; }
.asny-product h3 { padding: 15px 15px 0; text-align: center; }
.asny-product > p { padding: 12px 15px 0; font-size: 14px; }
.asny .asny-calendar-note { color: #686868; font-size: 12px; }
.asny .asny-text-link {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asny-product > .asny-text-link { align-self: center; margin: auto 15px 0; padding-top: 15px; }
.asny .asny-catalog-action { margin-top: 20px; text-align: center; }
.asny-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.asny-gallery figure { min-width: 0; }
.asny-gallery figure > a { display: block; aspect-ratio: 1; }
.asny-gallery figcaption { margin-top: 10px; font-size: 14px; text-align: center; }
.asny-price-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e5e5e5; }
.asny-price-row p { font-size: 14px; }
.asny-price-row .asny-text-link { white-space: nowrap; }
.asny-business-top { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.asny .asny-business-subtitle { margin: 15px 0; font-size: 18px; }
.asny-business-top .asny-button { margin-top: 20px; }
.asny-business-art img { aspect-ratio: 4 / 3; }
.asny-business-art figcaption { margin-top: 10px; font-size: 14px; text-align: center; }
.asny-business-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }
.asny-business-benefits article { padding: 20px; border-radius: 6px; background: #fff; }
.asny-business-benefits p { margin-top: 12px; font-size: 14px; }
.asny-business-gallery { margin-top: 25px; }
.asny-business-gallery > h3 { margin-bottom: 20px; text-align: center; }
.asny-gallery-business { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asny-gallery-business figure > a { aspect-ratio: 1.6; }
.asny .asny-quiz-section { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; }
.asny-quiz-copy > p { margin-top: 15px; }
.asny-quiz-card { padding: 25px; border-radius: 6px; background: #fff; }
.asny form { margin: 0; }
.asny fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.asny legend { float: none; width: 100%; padding: 0; margin: 0 0 20px; color: inherit; font-size: 20px; line-height: 1.25; }
.asny legend:focus { outline: none; }
.asny-progress-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #686868; }
.asny-progress { display: block; appearance: none; width: 100%; height: 3px; margin: 0 0 25px; border: 0; background: #e5e5e5; color: #121212; }
.asny-progress::-webkit-progress-bar { background: #e5e5e5; }
.asny-progress::-webkit-progress-value { background: #121212; }
.asny-progress::-moz-progress-bar { background: #121212; }
.asny-options { display: grid; gap: 10px; }
.asny-options > label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 15px; margin: 0; border: 1px solid #e5e5e5; border-radius: 6px; cursor: pointer; }
.asny-options input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: #121212; }
.asny-options label > span { font-size: 16px; }
.asny-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asny-quiz-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 20px; }
.asny .asny-back { margin-right: auto; padding: 10px 0; border: 0; background: transparent; color: inherit; font-size: 16px; }
.asny-field { display: grid; gap: 10px; margin: 20px 0; font-size: 16px; }
.asny-field input, .asny-field select { width: 100%; min-width: 0; padding: 20px 30px; border: 2px solid #f3f3f3; border-radius: 6px; background: #fff; color: #000; font-size: 18px; line-height: normal; }
.asny-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: #686868; font-size: 12px; line-height: 1.4; }
.asny-consent input { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: #121212; }
.asny .asny-consent a { text-decoration: underline; }
.asny .asny-selection { margin-top: 15px; font-size: 14px; color: #686868; }
.asny .asny-form-error { margin-top: 15px; color: #b71930; font-size: 14px; }
.asny-success { padding: 20px 0; outline: none; }
.asny-success p { margin-top: 15px; }
.asny-success button { margin-top: 20px; }
.asny-form-fallback p { margin-top: 15px; }
.asny-form-fallback a { text-decoration: underline; }
.asny .asny-ideas-trigger { display: block; margin: 0 auto 30px; padding: 15px 25px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: inherit; font-size: 16px; }
.asny-dialog { position: fixed; inset: 0; width: min(560px, calc(100% - 30px)); max-height: calc(100dvh - 30px); overflow: auto; margin: auto; padding: 35px 25px 25px; border: 0; border-radius: 6px; background: #fff; color: #111; font-family: inherit; font-size: 16px; line-height: 1.35; }
.asny-dialog::backdrop { background: #0008; }
.asny .asny-dialog-close { position: absolute; top: 5px; right: 10px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; }
.asny-dialog h2 { margin-bottom: 15px; }
.asny-ideas > p { margin-bottom: 20px; }
.asny-ideas legend { font-size: 18px; margin-bottom: 15px; }
.asny-ideas .asny-button { width: 100%; }
.asny .asny-lightbox { width: min(1000px, calc(100% - 30px)); padding: 35px 15px 15px; }
.asny-lightbox > img { width: 100%; height: auto; max-height: calc(100dvh - 130px); object-fit: contain; }
.asny-lightbox > p { margin-top: 10px; text-align: center; font-size: 14px; }
body.asny-modal-open { overflow: hidden; }
@media (max-width: 800px) {
  .asny-hero-grid, .asny-business-top, .asny .asny-quiz-section { gap: 20px; }
  .asny-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asny-price-row { grid-template-columns: 1fr auto; gap: 8px 15px; }
  .asny-price-row p { grid-column: 1; grid-row: 2; }
  .asny-price-row a { grid-column: 2; grid-row: 1 / 3; }
  .asny-quiz-card { padding: 20px; }
  .asny .asny-quiz-section { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .asny { font-size: 14px; }
  .asny h1 { font-size: 30px; }
  .asny h2 { font-size: 20px; }
  .asny h3 { font-size: 16px; }
  .asny .asny-hero { padding-block: 20px; }
  .asny-hero-grid, .asny-business-top { grid-template-columns: 1fr; }
  .asny-hero-photo { margin-top: 5px; }
  .asny .asny-benefits { margin: 15px 0; }
  .asny .asny-button { padding: 18px 20px; font-size: 16px; }
  .asny-hero-copy > .asny-button { width: 100%; }
  .asny .asny-section { padding-block: 20px; }
  .asny-product h3 { padding: 12px 10px 0; }
  .asny-product > p { padding: 10px 10px 0; font-size: 13px; }
  .asny-product > .asny-text-link { margin-inline: 10px; font-size: 13px; }
  .asny-product-image { aspect-ratio: 1; }
  .asny-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .asny-gallery figcaption { font-size: 13px; }
  .asny-business-benefits { grid-template-columns: 1fr; gap: 10px; }
  .asny-business-benefits article { padding: 15px; }
  .asny-gallery-business { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asny-gallery-business figure > a { aspect-ratio: 1; }
  .asny-gallery-business figcaption { font-size: 12px; }
  .asny-price-row .asny-text-link { font-size: 14px; }
  .asny legend { font-size: 18px; }
  .asny-options label > span { font-size: 14px; }
  .asny-field input, .asny-field select { padding: 18px 20px; font-size: 16px; }
  .asny-quiz-actions { gap: 10px; }
  .asny-quiz-actions .asny-button { padding-inline: 15px; font-size: 14px; }
  .asny-dialog { padding: 35px 20px 20px; font-size: 14px; }
}
@media (max-width: 360px) {
  .asny-catalog, .asny-options-grid { grid-template-columns: 1fr; }
  .asny-product-image { aspect-ratio: 1.6; }
  .asny-price-row { grid-template-columns: 1fr; }
  .asny-price-row a { grid-column: 1; grid-row: 3; justify-self: start; }
}
