/* 1Country — neutral base styles. Colours come from the Blocksy palette; the child theme overrides the rest. */
:root {
	--oc-accent: var(--theme-palette-color-1, #2563eb);
	--oc-accent-2: var(--theme-palette-color-2, #1d4ed8);
	--oc-text: var(--theme-text-color, #1f2937);
	--oc-muted: #6b7280;
	--oc-border: var(--theme-border-color, #e5e7eb);
	--oc-bg-soft: var(--theme-palette-color-6, #f5f7fa);
	--oc-radius: 10px;
	--oc-gap: 24px;
}

/* Buttons and badges */
.oc-button {
	display: inline-block; padding: 12px 22px; border-radius: var(--oc-radius);
	background: var(--oc-accent); color: #fff !important; text-decoration: none; font-weight: 600; line-height: 1.2;
}
.oc-button:hover, .oc-button:focus-visible { background: var(--oc-accent-2); }
.oc-button--secondary { background: transparent; color: var(--oc-accent) !important; box-shadow: inset 0 0 0 2px var(--oc-accent); }
.oc-button--secondary:hover { color: #fff !important; }
.oc-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; background: var(--oc-bg-soft); color: var(--oc-text); }
.oc-badge--promo { background: #dc2626; color: #fff; }
.oc-badge--until { background: #111827; color: #fff; }
.oc-badge--vnzh { background: #065f46; color: #fff; }
.oc-badges, .oc-slide__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

/* Prices */
.oc-price__amount { font-weight: 700; }
.oc-price__vat { color: var(--oc-muted); }
.oc-price--request { font-weight: 600; }
.oc-note { color: var(--oc-muted); font-size: 0.875em; }

/* Hero / slider */
.oc-hero { position: relative; overflow: hidden; color: #fff; background: #111827; min-height: clamp(420px, 42vw, 640px); }
/* The track is moved only by the slider (dots, arrows, swipe, autoplay): a trackpad or a vertical swipe over the
   hero scrolls the page instead of dragging the slides sideways. */
.oc-slider__track { display: flex; overflow: hidden; scrollbar-width: none; height: 100%; min-height: inherit; touch-action: pan-y; }
.oc-slider__track::-webkit-scrollbar { display: none; }
.oc-slide { position: relative; flex: 0 0 100%; min-height: clamp(420px, 42vw, 640px); display: flex; align-items: flex-end; }
.oc-slide__media, .oc-hero--static > .oc-slide__img { position: absolute; inset: 0; }
.oc-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-hero--static { display: flex; align-items: flex-end; }
.oc-slide__content {
	position: relative; z-index: 1; width: 100%; padding: 32px max(24px, calc((100% - 1200px) / 2)) 56px;
	background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 65%, rgba(0,0,0,0));
}
.oc-slide__title { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 4vw, 46px); line-height: 1.1; max-width: 900px; }
.oc-slide__text { margin: 0 0 18px; font-size: clamp(16px, 1.6vw, 20px); max-width: 720px; }
.oc-slide__terms { margin: 14px 0 0; font-size: 12px; opacity: .8; max-width: 720px; }
.oc-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.oc-slider__arrow--prev { left: 12px; }
.oc-slider__arrow--next { right: 12px; }
.oc-slider__dots { position: absolute; z-index: 2; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.oc-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.oc-slider__dot[aria-current="true"] { background: #fff; }
@media (max-width: 767px) { .oc-slider__arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .oc-slider__track { scroll-behavior: auto; } }

/* Cards */
.oc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--oc-gap); }
.oc-card { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.oc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--oc-bg-soft); }
.oc-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.oc-card__body { padding: 16px 18px 20px; }
.oc-card__title { margin: 0 0 6px; font-size: 20px; }
.oc-card__title a { text-decoration: none; color: inherit; }
.oc-card__meta { margin: 0 0 10px; color: var(--oc-muted); font-size: 14px; }
.oc-card__price { margin: 0; }

/* Project page */
.oc-section { margin: 0 0 48px; }
.oc-section__title { margin-bottom: 16px; }
.oc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 0 0 20px; }
.oc-summary__row { border-bottom: 1px solid var(--oc-border); padding-bottom: 8px; }
.oc-summary dt { color: var(--oc-muted); font-size: 14px; margin: 0; }
.oc-summary dd { margin: 2px 0 0; }
.oc-facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.oc-facts li { background: var(--oc-bg-soft); border-radius: var(--oc-radius); padding: 14px 16px; display: flex; flex-direction: column; }
.oc-facts__value { font-size: 20px; font-weight: 700; }
.oc-facts__label { color: var(--oc-muted); font-size: 14px; }
.oc-distances, .oc-amenities { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 24px; }
.oc-distances li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--oc-border); padding: 4px 0; }
.oc-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 20px; }
.oc-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.oc-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--oc-gap); }
.oc-answer { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); padding: 18px 20px; }
.oc-answer__q { margin: 0 0 10px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.oc-answer__n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--oc-accent); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.oc-answer__a > :last-child { margin-bottom: 0; }
.oc-answer__a--pending { color: var(--oc-muted); }
.oc-table-wrap { overflow-x: auto; }
.oc-table { width: 100%; border-collapse: collapse; }
.oc-table th, .oc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--oc-border); vertical-align: top; }
.oc-table th { font-size: 14px; color: var(--oc-muted); font-weight: 600; }
.oc-docs, .oc-videos { padding-left: 1.2em; }
.oc-disclaimer { margin: 0 0 32px; }

/* Lead form */
.oc-lead { background: var(--oc-bg-soft); border-radius: var(--oc-radius); padding: 28px; margin: 0 0 48px; scroll-margin-top: 90px; }
.oc-lead__title { margin-top: 0; }
.oc-lead--missing { border: 2px dashed #dc2626; }
.oc-lead__services { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
/* Theme button styles must not repaint the choice (0.12.1). Themes style "button:not(:hover)…" with a higher
   specificity than a component class, so the colours here are !important. */
.oc-lead .oc-lead__service { min-height: 44px; padding: 8px 16px; border: 1px solid var(--oc-border, #d1d5db) !important; border-radius: 999px; background: #fff !important; color: #1f2937 !important; font: inherit; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; }
.oc-lead .oc-lead__service:hover { background: #f3f4f6 !important; }
.oc-lead .oc-lead__service:focus-visible { outline: 2px solid var(--oc-accent, #1d4ed8); outline-offset: 2px; }
.oc-lead .oc-lead__service[aria-pressed="true"] { background: var(--oc-accent, #1d4ed8) !important; border-color: var(--oc-accent, #1d4ed8) !important; color: #fff !important; }
/* After a stored lead the form is hidden by Fluent Forms: hide the questions and the promise too (the confirmation says it). */
.oc-lead--sent .oc-lead__services, .oc-lead--sent .oc-lead__ask, .oc-lead--sent .oc-lead__sla { display: none; }
.oc-lead__ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin: 0 0 16px; }
.oc-lead__ask:empty { display: none; }
.oc-lead__q label { display: block; font-weight: 600; margin: 0 0 6px; }
.oc-lead__q select, .oc-lead__q input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--oc-border); border-radius: 8px; background: #fff; font: inherit; box-sizing: border-box; }
.oc-lead__err { display: none; color: #b91c1c; font-size: 14px; margin-top: 4px; }
.oc-lead__q--error select, .oc-lead__q--error input { border-color: #b91c1c; }
.oc-lead__q--error .oc-lead__err { display: block; }
.oc-lead__sla { margin: 12px 0 0; font-size: 15px; opacity: .85; }

/* Patterns */
.oc-pattern { margin-bottom: 48px; }

/* Installment: an extra option, collapsed */
.oc-installment { border-top: 1px solid var(--oc-border); padding-top: 12px; margin-top: 12px; }
.oc-installment > summary { cursor: pointer; font-weight: 600; color: var(--oc-accent); min-height: 44px; display: flex; align-items: center; }

/* Benefits: any number of cards, grid adapts (§8.3) */
.oc-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--oc-gap); }
.oc-benefit { padding: 20px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: #fff; }
.oc-benefit__icon { display: block; font-size: 28px; line-height: 1; margin-bottom: 10px; }
.oc-benefit__title { margin: 0 0 8px; font-size: 1.05em; }
.oc-benefit__text { margin: 0 0 8px; }

/* Layouts and apartments (basic until the design is approved) */
.oc-layouts { display: grid; gap: var(--oc-gap); }
.oc-layout { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: var(--oc-gap); padding: 20px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); }
.oc-layout__plan img { width: 100%; height: auto; display: block; }
.oc-layout__title { margin: 0 0 6px; }
.oc-layout__meta { margin: 0 0 10px; color: var(--oc-muted); }
.oc-layout__units { margin: 0; padding-left: 18px; }
.oc-layout__units li { margin: 4px 0; }
@media (max-width: 640px) { .oc-layout { grid-template-columns: 1fr; } }
.oc-unit__sold { padding: 14px 18px; border-radius: var(--oc-radius); background: var(--oc-bg-soft); margin: 0 0 16px; }
.oc-unit__price { font-size: 1.2em; }
.oc-unit__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; }
.oc-unit__facts dt { color: var(--oc-muted); }
.oc-unit__facts dd { margin: 0; }

/* Statuses: В продаже / Забронирована / Продана (sold ones greyed, kept N days after the price list). */
.oc-layout__unit--sold { opacity: .55; }
.oc-badge--sold { background: #6b6b6b; color: #fff; }
.oc-badge--free { background: #e7f5ea; color: #1e6b34; }
.oc-badge--reserved { background: #fff4e5; color: #8a4b00; }

/* 0.13.0: personal analysis — one optional checkbox; the questions open only when it is ticked. */
.oc-lead__an { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--oc-border, #d1d5db); border-radius: 10px; background: #fff; }
.oc-lead__an[hidden], .oc-lead__an:empty, .oc-lead--sent .oc-lead__an { display: none; }
.oc-lead__an-on { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.oc-lead__an-on input, .oc-lead__check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--oc-accent, #1d4ed8); }
.oc-lead__an-body { padding-top: 8px; }
.oc-lead__an-body[hidden] { display: none; }
.oc-lead__an-note { margin: 0 0 12px; font-size: 15px; opacity: .85; }
.oc-lead__an-q { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.oc-lead__q[hidden] { display: none; }
.oc-lead__q--multi { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.oc-lead__q--multi legend { font-weight: 600; margin: 0 0 6px; padding: 0; }
.oc-lead__check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.oc-lead__q--error.oc-lead__q--multi .oc-lead__err { display: block; }
/* Theme form styles (labels as blocks, big legends, thick input borders) must not reshape the analysis block. */
.oc-lead .oc-lead__q label.oc-lead__check { display: flex; font-weight: 400; margin: 0; line-height: 1.35; }
.oc-lead .oc-lead__q--multi legend { font-size: inherit; line-height: 1.35; font-weight: 600; }
.oc-lead .oc-lead__an input[type="text"], .oc-lead .oc-lead__an input[type="url"] { border: 1px solid var(--oc-border, #d1d5db); border-radius: 8px; min-height: 44px; padding: 8px 12px; }
.oc-lead .oc-lead__an input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; min-height: 0; padding: 0; margin: 0; }
/* 0.13.2: the analysis block inside the form (between Email and Comment) and the email required for it. */
.oc-lead form .oc-lead__an { margin: 4px 0 20px; }
.oc-lead__email-err { display: none; color: #b91c1c; font-size: 14px; margin-top: 4px; }
.oc-lead__email--error .oc-lead__email-err { display: block; }
.oc-lead__email--error input[name="email"] { border-color: #b91c1c !important; }
