/*
Theme Name: Pos12 Theme
Theme URI: https://example.com
Author: Dania
Description: Кастомная тема для Позиции 12
Version: 1.0
Text Domain: pos12-theme
*/
@font-face {
  font-family: "Unbounded";
  src: url("./Unbounded/Unbounded-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./Unbounded/Unbounded-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./Unbounded/Unbounded-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./Unbounded/Unbounded-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --bg-secondary: #dde6e7;
  --bg-muted: #c0cccd;
  --text: #425354;
  --text-light: #6b7c7d;
  --accent: #425354;
  --accent-hover: #2f3d3e;
  --container: 1200px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  display: block;
  border: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e9efef;
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: #dbe5e5;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-secondary);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

p {
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, #f6f9f9 0%, #ffffff 100%);
}

.hero-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hero-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 28, 0.28);
  z-index: 0;
}

.hero.hero-has-bg > .container {
  position: relative;
  z-index: 1;
}

.hero-has-bg .hero-left {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
}

.hero-has-bg .hero-left h1,
.hero-has-bg .hero-left p,
.hero-has-bg .hero-kicker {
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.hero-left {
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  opacity: 0.9;
}

.hero-left h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 16px;
}

.hero-left p {
  font-size: 18px;
  max-width: 620px;
}

.hero-quiz {
  display: flex;
  flex-direction: column;
  height: 560px;
  min-height: 560px;
  max-height: 560px;
  overflow: hidden;
}

.quiz-step-wrap {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.quiz-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.quiz-panel--results {
  gap: 18px;
}

.quiz-progress {
  font-size: 13px;
  color: var(--text-light);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-btn {
  width: 100%;
}

.quiz-results {
  display: grid;
  gap: 12px;
}

.quiz-result-card {
  padding: 16px;
}

.quiz-result-card h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.quiz-result-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.quiz-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quiz-card-actions .btn {
  flex: 1 1 160px;
}

.quiz-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz-lead {
  margin-top: 4px;
}

.quiz-lead-selected {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6e0e0;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.quiz-submit {
  width: 100%;
}

.quiz-form-message {
  margin-top: 12px;
  font-size: 14px;
}

.quiz-form-message.is-success {
  color: #2f7a46;
}

.quiz-form-message.is-error {
  color: #b13b3b;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.adv-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.adv-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.65));
  color: #fff;
}

.adv-overlay h3 {
  margin-bottom: 8px;
  color: #fff;
}

.adv-overlay p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.adv-wide-card {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.adv-wide-card__head {
  padding: 24px 24px 0;
}

.adv-wide-card__head h3 {
  margin-bottom: 8px;
}

.adv-wide-card__head p {
  margin-bottom: 0;
}

.adv-wide-card__widget {
  padding: 20px 24px 24px;
}

.adv-wide-card__widget iframe {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  background: #eef3f3;
}

.plan-modal {
  position: fixed !important;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.plan-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.plan-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.plan-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 980px);
  max-height: min(92vh, 920px);
  background: #fff;
  border-radius: 20px;
  overflow: auto;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.plan-modal__close {
  position: sticky;
  top: 12px;
  left: calc(100% - 52px);
  z-index: 3;
  width: 40px;
  height: 40px;
  margin: 12px 12px 0 auto;
  border: none;
  border-radius: 999px;
  background: rgba(66, 83, 84, 0.12);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.plan-modal__content {
  padding: 0 20px 24px;
}

.plan-modal__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-modal__inner h3 {
  margin-bottom: 0;
}

.plan-modal__inner img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f4f7f7;
}

footer a {
  word-break: break-word;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero-left {
    max-width: none;
  }

  .hero-quiz {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .quiz-step-wrap {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 44px 0;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero.hero-has-bg::before {
    background: rgba(18, 27, 28, 0.52);
  }

  .hero-has-bg .hero-left h1,
  .hero-has-bg .hero-left p,
  .hero-has-bg .hero-kicker {
    color: #ffffff !important;
  }

  .hero-grid {
    gap: 20px;
    align-items: start;
  }

  .hero-left h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-left p {
    font-size: 16px;
    line-height: 1.55;
  }

  .card {
    padding: 18px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-quiz {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .quiz-step-wrap {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .quiz-panel {
    min-height: 0;
  }

  .quiz-result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-card-actions {
    flex-direction: column;
  }

  .quiz-card-actions .btn {
    width: 100%;
    flex: none;
  }

  .quiz-options {
    gap: 12px;
  }

  .quiz-btn {
    min-height: 54px;
  }

  .quiz-result-card {
    padding: 14px;
  }

  .adv-card {
    height: 280px;
  }

  .adv-wide-card__head {
    padding: 18px 18px 0;
  }

  .adv-wide-card__widget {
    padding: 18px;
  }

  .adv-wide-card__widget iframe {
    height: 280px;
  }

  .plan-modal {
    padding: 10px;
    align-items: center;
    justify-content: center;
  }

  .plan-modal__dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  .plan-modal__content {
    padding: 0 14px 18px;
  }

  .plan-modal__inner img {
    max-height: 60vh;
  }
}
@media (max-width: 768px) {
  .wp-block-columns.grid-3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wp-block-columns.grid-3 > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .wp-block-columns.grid-3 > .wp-block-column:not(:first-child) {
    margin-left: 0 !important;
  }

  .wp-block-columns.grid-3 .adv-card {
    width: 100%;
    height: 220px;
  }

  .adv-wide-card {
    width: 100%;
    margin-top: 16px;
  }

  .adv-wide-card__widget {
    padding: 16px;
  }

.adv-wide-card__widget iframe {
  width: 100%;
  height: 55vh;
  min-height: 440px;
  max-height: 640px;
}
}
.wp-block-columns.grid-3 {
  margin-bottom: 0;
}

.wp-block-columns.grid-3 > .wp-block-column {
  margin-bottom: 0;
}
.cookie-notice {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    background: #ffffff;
    color: #1f1f1f;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    line-height: 1.45;
}

.cookie-notice.is-hidden {
    display: none;
}

.cookie-notice__text {
    max-width: 880px;
}

.cookie-notice__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice__button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-notice__button:hover {
    opacity: 0.9;
}

@media (max-width: 720px) {
    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .cookie-notice__button {
        width: 100%;
    }
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 18px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 31, 31, 0.78);
    cursor: pointer;
}

.form-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
}

.form-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-policy-links {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.78;
}

.footer-policy-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
