/* ==========================================================================
   Rodak theme — site styles
   ========================================================================== */

/* Fonts
   ------------------------------------------------------------------------
   Self-hosted subsets taken from Google Fonts. Both families ship as variable
   fonts, so one file per subset covers every weight the theme uses and the
   font-weight range replaces the per-weight @font-face blocks Google serves.
   unicode-range is copied verbatim so the browser fetches the cyrillic file
   only for pages that actually contain cyrillic.
   ------------------------------------------------------------------------ */
@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/lora-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/lora-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens
   ------------------------------------------------------------------------ */
:root {
	--c-dark: #16221F;
	--c-green: #0F6A5F;
	--c-green-dark: #0A4A42;
	--c-bg: #F6F4EF;
	--c-card: #FFFDF9;
	--c-border: #E1DCD2;
	--c-muted: #6E7B77;
	--c-text: #43514D;
	--c-accent-light: #9FCEC5;

	/* Shades derived from the prototype */
	--c-topbar-text: #C9D6D2;
	--c-nav-link: #33413D;
	--c-outline: #C8C1B4;
	--c-frame: #CFC8BA;
	--c-photo-bg: #E7E2D8;
	--c-map-bg: #EDE9E1;
	--c-cta-text: #CDE4DF;
	--c-cta-btn-text: #0F4F47;
	--c-dark-line: #37453F;
	--c-dark-soft: #B7C4C0;
	--c-mint: #86C2B6;
	--c-footer-line: #2A3833;
	--c-footer-copy: #7C8A85;
	--c-selection: #CFE3DE;
	--c-error: #B3261E;

	--font-serif: 'Lora', Georgia, serif;
	--font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--gutter-bar: clamp(14px, 4vw, 32px);
	--section-pad: clamp(52px, 7vw, 88px);
	--radius-card: 20px;
	--radius-box: 16px;
	--header-h: 80px;
}

/* Base
   ------------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* The decorative .hero__frame pokes 2px past the viewport on phones; clip
	   (not hidden) kills the horizontal scroll without creating a scroll
	   container, so position: sticky on the header keeps working. Chrome only
	   stops the 2px viewport pan when BOTH html and body carry the clip. */
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-dark);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* see the html rule above */
}

img,
iframe {
	max-width: 100%;
}

a {
	color: var(--c-green);
	text-decoration: none;
}

a:hover {
	color: var(--c-green-dark);
}

::selection {
	background: var(--c-selection);
}

:where(h1, h2, h3, p) {
	margin: 0;
}

.site {
	min-height: 100vh;
	background: var(--c-bg);
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The sticky header covers the top of a section — offset anchor scrolling. */
section[id] {
	scroll-margin-top: var(--header-h);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 100;
	padding: 12px 20px;
	border-radius: 0 0 var(--radius-box) var(--radius-box);
	background: var(--c-green);
	color: var(--c-card);
	font-size: 15px;
	font-weight: 600;
	transition: top 0.15s ease;
}

/* Repeats the colour so a pointer hovering the focused link cannot trigger a:hover. */
.skip-link:focus {
	top: 0;
	color: var(--c-card);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Buttons
   ------------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 17px 32px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover colours are repeated on every modifier because a phone link renders as
   a .btn and would otherwise pick up the global a:hover colour. */
.btn--primary {
	background: var(--c-green);
	color: var(--c-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--c-green-dark);
	color: var(--c-bg);
}

.btn--outline {
	padding: 17px 30px;
	border-color: var(--c-outline);
	color: var(--c-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	border-color: var(--c-dark);
	color: var(--c-dark);
}

.btn--light {
	padding: 16px 30px;
	background: var(--c-bg);
	color: var(--c-cta-btn-text);
	white-space: nowrap;
}

.btn--light:hover,
.btn--light:focus-visible {
	background: #FFFFFF;
	color: var(--c-green-dark);
}

.btn--ghost {
	padding: 16px 28px;
	border-color: rgba(246, 244, 239, 0.55);
	color: var(--c-bg);
	white-space: nowrap;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	border-color: var(--c-bg);
	background: rgba(255, 255, 255, 0.1);
	color: var(--c-bg);
}

.btn--sm {
	padding: 12px clamp(16px, 2vw, 22px);
	font-size: 14.5px;
	white-space: nowrap;
}

.btn--block {
	display: flex;
	width: 100%;
}

.btn:focus-visible {
	outline: 2px solid var(--c-accent-light);
	outline-offset: 3px;
}

/* Shared section pieces
   ------------------------------------------------------------------------ */
.methods__inner,
.steps__inner,
.contacts__inner,
.conditions,
.about,
.simple-page {
	padding-block: var(--section-pad);
}

.section-title,
.page__title {
	font-family: var(--font-serif);
	font-size: clamp(28px, 4.2vw, 42px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.section-title {
	text-wrap: pretty;
}

/* Uppercase micro-labels sitting above headings and inside cards. */
.methods__num,
.methods__extra-label,
.about__spec-label,
.about__subtitle,
.steps__num {
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.methods__extra-label,
.about__spec-label {
	color: var(--c-muted);
	font-size: 12px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--c-green);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow__line {
	width: 28px;
	height: 1px;
	background: var(--c-green);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-end;
	justify-content: space-between;
}

.section-lead {
	max-width: 30em;
	color: var(--c-muted);
	font-size: 16.5px;
	line-height: 1.6;
}

/* Fallback template (index.php) */
.page__content {
	margin-top: 20px;
	color: var(--c-text);
	font-size: 16.5px;
	line-height: 1.65;
}

.placeholder {
	padding-block: 80px;
}

.placeholder__text {
	padding: 24px 28px;
	border: 1px dashed var(--c-border);
	border-radius: var(--radius-box);
	background: var(--c-card);
	color: var(--c-muted);
	font-size: 16px;
}

/* Top bar
   ------------------------------------------------------------------------ */
.topbar {
	background: var(--c-dark);
	color: var(--c-topbar-text);
	letter-spacing: 0.01em;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container);
	margin-inline: auto;
	padding: 9px var(--gutter-bar);
	font-size: clamp(11.5px, 1.05vw, 13px);
}

.topbar__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	align-items: center;
}

.topbar__phone {
	color: var(--c-bg);
	font-weight: 600;
	white-space: nowrap;
}

.topbar__phone:hover {
	color: #FFFFFF;
}

/* Header
   ------------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(246, 244, 239, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container);
	margin-inline: auto;
	padding: 14px var(--gutter-bar);
}

.site-branding {
	flex: 0 0 clamp(200px, 22vw, 240px);
	min-width: 0;
}

.site-logo-link {
	display: block;
	width: fit-content;
	max-width: 100%;
	line-height: 0;
}

.site-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 64px;
	object-fit: contain;
	object-position: left center;
}

.site-nav {
	flex: 1 1 300px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px clamp(12px, 1.6vw, 20px);
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	padding-left: clamp(0px, 4vw, 64px);
	font-size: 15px;
	font-weight: 500;
}

.site-nav__links {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px clamp(14px, 2vw, 26px);
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__link {
	color: var(--c-nav-link);
	white-space: nowrap;
	transition: color 0.2s ease;
}

.site-nav__link:hover {
	color: var(--c-green);
}

.site-nav__cta {
	flex: 0 0 auto;
}

/* Section: hero
   ------------------------------------------------------------------------ */
.hero {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(36px, 5vw, 64px);
	align-items: center;
	max-width: var(--container);
	margin-inline: auto;
	padding: clamp(44px, 7vw, 84px) var(--gutter) clamp(48px, 6vw, 76px);
}

.hero__body {
	flex: 1 1 440px;
	min-width: 0;
}

.hero__title {
	margin: 22px 0 0;
	font-family: var(--font-serif);
	font-size: clamp(34px, 5.6vw, 62px);
	font-weight: 500;
	line-height: 1.07;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.hero__lead {
	max-width: 34em;
	margin: 26px 0 0;
	color: var(--c-text);
	font-size: clamp(16.5px, 1.4vw, 19px);
	line-height: 1.6;
	text-wrap: pretty;
}

.hero__lead p {
	margin-bottom: 12px;
}

.hero__lead p:last-child {
	margin-bottom: 0;
}

.hero__lead strong {
	color: var(--c-dark);
	font-weight: 600;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 24px 28px;
	margin-top: clamp(36px, 5vw, 52px);
	padding-top: 32px;
	border-top: 1px solid var(--c-border);
}

.hero__stat-value {
	font-family: var(--font-serif);
	font-size: 30px;
	line-height: 1;
}

.hero__stat-label {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.4;
}

.hero__media {
	position: relative;
	flex: 1 1 300px;
	min-width: 240px;
	max-width: 400px;
}

.hero__frame {
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid var(--c-frame);
	border-radius: 240px 240px 20px 20px;
}

.hero__photo {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 275 / 355;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: 240px 240px 20px 20px;
	background: var(--c-photo-bg);
}

.hero__card {
	position: relative;
	max-width: 300px;
	margin: -34px 0 0 -24px;
	padding: 18px 22px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-box);
	background: var(--c-card);
	box-shadow: 0 18px 40px -28px rgba(22, 34, 31, 0.4);
}

.hero__card-title {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 600;
}

.hero__card-text {
	margin-top: 5px;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

/* Section: treatment methods
   ------------------------------------------------------------------------ */
.methods {
	background: var(--c-card);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.methods__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
	gap: 20px;
	margin-top: clamp(32px, 4vw, 44px);
}

.methods__card {
	padding: clamp(26px, 3vw, 34px) clamp(22px, 2.6vw, 32px) clamp(26px, 3vw, 32px);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	background: var(--c-bg);
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.methods__card:hover {
	border-color: var(--c-accent-light);
	box-shadow: 0 22px 44px -32px rgba(22, 34, 31, 0.5);
	transform: translateY(-3px);
}

.methods__num {
	color: var(--c-green);
	font-size: 12px;
}

.methods__card-title {
	margin: 14px 0 0;
	font-family: var(--font-serif);
	font-size: 25px;
	font-weight: 600;
}

.methods__card-text {
	margin: 12px 0 0;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.65;
}

.methods__extra {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding: 26px 32px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	background: var(--c-bg);
}

.methods__extra-text {
	color: var(--c-text);
	font-size: 16.5px;
}

/* Section: what people come with
   ------------------------------------------------------------------------ */
.conditions {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(32px, 5vw, 64px);
}

.conditions__intro {
	flex: 1 1 280px;
	min-width: 260px;
}

.conditions__text {
	margin: 20px 0 0;
	color: var(--c-muted);
	font-size: 16.5px;
	line-height: 1.65;
}

.conditions__phone {
	display: inline-block;
	margin-top: 22px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--c-accent-light);
	font-size: 16.5px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.conditions__phone:hover {
	border-color: var(--c-green-dark);
	color: var(--c-green-dark);
}

.conditions__list {
	flex: 2 1 440px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
	gap: 2px 40px;
	align-content: start;
}

.conditions__item {
	padding: 18px 0;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-dark);
	font-size: 16.5px;
	transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.conditions__item:hover {
	padding-left: 6px;
	border-color: var(--c-accent-light);
	color: var(--c-green);
}

/* Section: call to action
   ------------------------------------------------------------------------ */
.cta {
	background: var(--c-green);
	color: var(--c-bg);
}

.cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	align-items: center;
	justify-content: space-between;
	padding-block: clamp(38px, 4.5vw, 56px);
}

.cta__body {
	flex: 1 1 420px;
	min-width: 0;
}

.cta__title {
	font-family: var(--font-serif);
	font-size: clamp(24px, 2.8vw, 33px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

.cta__text {
	max-width: 40em;
	margin: 12px 0 0;
	color: var(--c-cta-text);
	font-size: 16.5px;
	line-height: 1.6;
}

.cta__actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Section: how a visit goes
   ------------------------------------------------------------------------ */
.steps {
	background: var(--c-dark);
	color: var(--c-bg);
}

.steps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
	gap: 28px 32px;
	margin-top: clamp(34px, 4vw, 48px);
}

.steps__item {
	padding-top: 26px;
	border-top: 1px solid var(--c-dark-line);
}

.steps__num {
	color: var(--c-mint);
	font-size: 12.5px;
}

.steps__title {
	margin: 14px 0 0;
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 600;
}

.steps__text {
	margin: 12px 0 0;
	color: var(--c-dark-soft);
	font-size: 16px;
	line-height: 1.65;
}

/* Section: about the doctor
   ------------------------------------------------------------------------ */
.about__grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(32px, 5vw, 64px);
	align-items: flex-start;
}

.about__aside {
	position: sticky;
	top: 100px;
	flex: 1 1 290px;
	min-width: 260px;
}

.about__text {
	margin: 20px 0 0;
	color: var(--c-text);
	font-size: 16.5px;
	line-height: 1.65;
}

.about__spec {
	margin-top: 28px;
	padding: 22px 24px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-box);
	background: var(--c-card);
}

.about__spec-text,
.about__row-text {
	font-size: 16.5px;
	line-height: 1.55;
}

.about__spec-text {
	margin-top: 10px;
}

.about__main {
	flex: 2 1 420px;
	min-width: 0;
}

.about__subtitle {
	color: var(--c-green);
	font-size: 12.5px;
}

.about__subtitle--spaced {
	margin-top: 44px;
}

.about__list {
	display: flex;
	flex-direction: column;
	margin-top: 22px;
}

.about__row {
	display: grid;
	grid-template-columns: clamp(72px, 11vw, 118px) 1fr;
	gap: clamp(12px, 2vw, 24px);
	padding: 16px 0;
	border-top: 1px solid var(--c-border);
}

/* Closes the last list with a bottom rule, as in the prototype. */
.about__main > .about__list:last-child > .about__row:last-child {
	border-bottom: 1px solid var(--c-border);
}

.about__years {
	color: var(--c-muted);
	font-family: var(--font-serif);
	font-size: 17px;
}

/* Section: contacts and map
   ------------------------------------------------------------------------ */
.contacts {
	background: var(--c-card);
	border-top: 1px solid var(--c-border);
}

.contacts__grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(32px, 4.5vw, 56px);
	align-items: flex-start;
}

.contacts__info {
	flex: 1 1 330px;
	min-width: 280px;
}

.contacts__text {
	margin: 18px 0 0;
	color: var(--c-text);
	font-size: 17px;
	line-height: 1.65;
}

.contacts__table {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 30px;
}

.contacts__row {
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid var(--c-border);
}

.contacts__row:last-child {
	border-bottom: 1px solid var(--c-border);
}

.contacts__label {
	color: var(--c-muted);
	font-size: 14.5px;
}

.contacts__value {
	font-size: 17px;
	text-align: right;
}

.contacts__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.contacts__map {
	flex: 1.2 1 340px;
	min-width: 260px;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	background: var(--c-map-bg);
}

.contacts__map iframe {
	display: block;
	width: 100%;
	height: clamp(280px, 38vw, 430px);
	border: 0;
}

/* Footer
   ------------------------------------------------------------------------ */
.site-footer {
	background: var(--c-dark);
	color: var(--c-dark-soft);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	justify-content: space-between;
	max-width: var(--container);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 52px) var(--gutter) 40px;
}

.site-footer__about {
	max-width: 30em;
}

.site-footer__name {
	color: var(--c-bg);
	font-family: var(--font-serif);
	font-size: 20px;
}

.site-footer__note {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

/* Three rows filled column-first: menu items 1-3 land in the left column,
   items 4-5 plus the phone link in the right one. */
.site-footer__nav {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	gap: 10px 56px;
	font-size: 14.5px;
}

/* The list box is dissolved so its items and the phone link share one grid. */
.site-footer__list {
	display: contents;
}

.site-footer__nav li {
	list-style: none;
}

.site-footer__link {
	color: var(--c-dark-soft);
	transition: color 0.2s ease;
}

.site-footer__link:hover {
	color: var(--c-bg);
}

.site-footer__bottom {
	border-top: 1px solid var(--c-footer-line);
}

.site-footer__copy {
	max-width: var(--container);
	margin-inline: auto;
	padding: 18px var(--gutter);
	color: var(--c-footer-copy);
	font-size: 13px;
}

/* Booking modal
   ------------------------------------------------------------------------ */
.modal {
	width: calc(100% - 32px);
	max-width: 440px;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-dark);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.modal::backdrop {
	background: rgba(22, 34, 31, 0.55);
	backdrop-filter: blur(4px);
}

.modal[open] {
	animation: rodak-modal-in 0.24s ease both;
}

.modal[open]::backdrop {
	animation: rodak-backdrop-in 0.24s ease both;
}

@keyframes rodak-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rodak-backdrop-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.modal[open],
	.modal[open]::backdrop {
		animation: none;
	}
}

.modal__inner {
	position: relative;
	padding: 30px clamp(20px, 4vw, 32px) 32px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	background: var(--c-card);
	box-shadow: 0 40px 80px -40px rgba(22, 34, 31, 0.6);
}

.modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
	background: var(--c-bg);
	color: var(--c-dark);
}

.modal__title {
	padding-right: 32px;
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.modal__text {
	margin: 10px 0 0;
	color: var(--c-muted);
	font-size: 15.5px;
	line-height: 1.55;
}

.modal__form {
	margin-top: 22px;
}

.modal__fallback-text {
	margin-bottom: 16px;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.6;
}

.is-modal-open,
.is-modal-open body {
	overflow: hidden;
}

/* Contact Form 7
   ------------------------------------------------------------------------ */
.wpcf7-form p {
	margin: 0;
}

.wpcf7-form .booking-form > p,
.wpcf7-form > p {
	margin-bottom: 14px;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--c-dark);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="email"]::placeholder {
	color: #A3ADAA;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--c-green);
	box-shadow: 0 0 0 3px rgba(15, 106, 95, 0.12);
}

.wpcf7-form input[type="submit"] {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 16px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--c-green);
	color: var(--c-bg);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--c-green-dark);
}

.wpcf7-form input[type="submit"]:disabled {
	opacity: 0.65;
	cursor: default;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--c-error);
	font-size: 13px;
	line-height: 1.4;
}

.wpcf7-form input.wpcf7-not-valid {
	border-color: var(--c-error);
}

/* CF7 ships its own margins and border-width on the response box. */
.wpcf7-response-output {
	margin: 16px 0 0 !important;
	padding: 12px 14px !important;
	border-width: 1px !important;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--c-green);
	color: var(--c-green-dark);
}

.wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* Narrow screens
   ------------------------------------------------------------------------ */
@media (max-width: 720px) {
	.about__aside {
		position: static;
	}

	.site-nav {
		padding-left: 0;
		justify-content: flex-start;
	}

	/* Without width: 100% the container sizes to both buttons on one line
	   (auto-basis flex item) and overflows the screen instead of wrapping. */
	.cta__actions {
		width: 100%;
	}
}

/* The negative offset only reads as an overlap when the card can be hovered. */
@media (max-width: 720px), (hover: none) {
	.hero__card {
		margin-left: 0;
	}
}
