/*
Theme Name: KON/SOL Studio
Description: Сайт студии анимации KON/SOL с портфолио, калькулятором и управлением заказами.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Author: KON/SOL
Text Domain: konsol-studio
*/

@font-face {
	font-family: Nunito;
	src: url('assets/fonts/Nunito.ttf') format('truetype');
	font-weight: 400 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #fffaf2;
	--ink: #251d1a;
	--muted: #64554e;
	--red: #a33431;
	--brick: #b63f38;
	--peach: #ffb58f;
	--gold: #ffd398;
	--green: #183e3d;
	--line: #e8dacf;
	--radius: 24px;
	--shadow: 0 18px 45px #42270f13;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Nunito, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
figure, blockquote, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.07; letter-spacing: -.042em; }
h2 { font-size: clamp(35px, 5.1vw, 64px); }
h3 { font-size: clamp(23px, 2.4vw, 32px); }
section[id], article[id], details[id] { scroll-margin-top: 22px; }
:focus-visible { outline: 3px solid #a33431; outline-offset: 4px; }
.hero :focus-visible, .estimate-section :focus-visible, .contact-intro :focus-visible { outline-color: #ffd398; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: clamp(52px, 7.2vw, 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 42px; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 36ch; }
.eyebrow { font-size: 12px; line-height: 1.3; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; background: #fff; border: 2px solid var(--red); border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; line-height: 1.25; font-weight: 900; text-align: center; transition: background .18s, color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; transform: none; opacity: .67; }
.button-primary { background: var(--brick); color: #fff; }
.button-primary:hover { background: #96302b; }
.button-glass { background: #fff4; border-color: #fff8; color: #fff; }
.button-glass:hover { background: #fff5; }
.button-outline { background: transparent; color: inherit; border-color: currentColor; }
.button-outline:hover { background: #ffffff15; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; color: var(--red); font-size: 14px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

.site-header { position: relative; z-index: 3; background: #fff9ef; border-bottom: 1px solid #e8dac8; }
.header-row { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.studio-logo, .custom-logo-link { display: block; flex: 0 0 auto; }
.studio-logo img, .custom-logo { width: clamp(126px, 15vw, 190px); height: auto; max-height: 56px; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 37px); font-size: 14px; font-weight: 800; }
.site-nav a { padding-block: 8px; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-account { color: var(--red); }
.header-cta { min-height: 43px; background: #fae4d7; color: #7b2d28; white-space: nowrap; }
.header-cta:hover { background: #f8d7c6; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff9ef; border-radius: 9px; padding: 7px 10px; color: var(--ink); font-weight: 800; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #251a14; color: #fff8ed; }
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 27%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#251a16e6 1%,#251a16b8 31%,#251a1629 53%,transparent 65%), linear-gradient(0deg,#251a167d,transparent 35%); }
.hero-inner { min-height: clamp(545px, 53vw, 900px); padding-block: 90px 106px; display: flex; align-items: center; position: relative; }
.hero-copy { width: min(52%, 680px); }
.hero .eyebrow { color: #ffd9ac; margin-bottom: 17px; }
.hero h1 { font-size: clamp(50px, 6.3vw, 96px); letter-spacing: -.068em; }
.hero h1 span { color: var(--gold); }
.hero-intro { margin-top: 21px; color: #fff4e6; max-width: 44ch; font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .button-primary { background: #ffcda1; color: #462318; }
.hero .button-primary:hover { background: #ffe1c1; }
.hero-caption { position: absolute; bottom: 28px; right: 0; display: grid; padding: 12px 16px; border: 1px solid #ffefda65; border-radius: 14px; background: #2a1d16b8; backdrop-filter: blur(9px); }
.hero-caption strong { font-size: 15px; line-height: 1.3; }
.hero-caption > span { color: #ffe1bc; font-size: 12px; }

.school-feature { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); border-radius: var(--radius); background: var(--green); color: #fff9ed; overflow: hidden; box-shadow: var(--shadow); }
.school-media { min-height: 310px; position: relative; }
.school-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.school-copy { padding: clamp(27px, 4.5vw, 58px); align-self: center; }
.school-copy .eyebrow { color: #fbd3a1; margin-bottom: 10px; }
.school-copy h3 { font-size: clamp(34px, 4.4vw, 56px); }
.school-copy p:not(.eyebrow) { margin-top: 16px; color: #e7f1e9; }
.school-copy .text-link { color: #ffdcaf; margin-top: 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 31px 18px; }
.filters button { color: #513b32; background: transparent; border: 1px solid #d8c8bd; border-radius: 999px; min-height: 40px; padding: 6px 13px; font-size: 13px; font-weight: 800; }
.filters button:hover { background: #f7e6d7; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.project-grid, .review-grid, .price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.school-feature + .filters[hidden] + .project-grid { margin-top: 24px; }
.project-card, .review-card, .price-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; min-width: 0; overflow: hidden; }
.project-card { display: flex; flex-direction: column; }
.project-cover { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.project-copy { padding: 20px 21px 24px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.project-meta { font-size: 12px; font-weight: 900; color: var(--red); }
.project-copy h3, .review-card h3 { margin-block: 7px 9px; }
.project-copy > p:not(.project-meta), .review-story { color: var(--muted); }
.project-copy details { margin-top: auto; padding-top: 14px; width: 100%; }
.project-copy details > p { color: var(--muted); margin-block: 7px; }
.project-copy details video { width: 100%; border-radius: 10px; margin-block: 10px; background: var(--ink); }
.project-copy details .text-link { display: flex; width: fit-content; margin-block: 9px 0; }
summary { font-weight: 900; }
.storyboard { margin-top: 22px; padding: 14px 18px; border: 1px solid #e4cfc0; border-radius: 16px; background: #fff5e7; }
.storyboard summary { color: #573a2d; }
.storyboard summary span { font-size: 13px; color: var(--muted); margin-left: 7px; font-weight: 700; }
.storyboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-block: 15px 4px; }
.storyboard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }
.storyboard figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.review-section { background: #f7eee5; border-block: 1px solid #ecdfd1; }
.review-card { display: flex; flex-direction: column; padding: 22px; }
.review-card figure { flex: 1; margin: 16px 0; padding: 14px 15px; background: #f8eddf; border-radius: 13px; display: flex; flex-direction: column; }
.review-card blockquote { color: #482e26; line-height: 1.48; }
.review-card figcaption { color: #695046; font-size: 13px; padding-top: 10px; margin-top: auto; }
.price-card { display: flex; flex-direction: column; padding: 24px; }
.price-duration { color: var(--red); font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.price-amount { font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; margin-block: 14px; white-space: nowrap; }
.price-amount span { font-size: 15px; letter-spacing: 0; }
.price-description { color: var(--muted); }
.price-card ul { padding-left: 1.18em; margin: 16px 0 22px; }
.price-card li { margin-block: 5px; }
.price-button { margin-top: auto; justify-content: space-between; border-color: #d8c4b3; background: #fff5e8; color: #5e3126; }
.price-button:hover { background: #f3e1cb; }
.price-card-featured { background: var(--green); border-color: var(--green); color: #fff9ef; box-shadow: var(--shadow); }
.price-card-featured .price-duration, .price-card-featured .price-amount { color: var(--gold); }
.price-card-featured .price-description { color: #e4f0e6; }
.price-card-featured .price-button { background: #ffd2a2; border-color: #ffd2a2; }
.price-card-featured .price-button:hover { background: #ffe2c5; }
.price-card-featured :focus-visible, .school-feature :focus-visible { outline-color: var(--gold); }
.process-section { background: #f1f2e5; border-block: 1px solid #e3e6d5; }
.process-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.process-list li { border-top: 3px solid #77978a; padding-top: 17px; }
.process-list h3 { font-size: clamp(18px, 2vw, 24px); }
.process-list p { color: var(--muted); margin-top: 7px; }
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 25px; align-items: center; }
.team-layout > div > p { color: var(--muted); margin-top: 13px; max-width: 33ch; }
.team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 14px; }
.team-list li { display: grid; align-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 17px; padding: 20px; min-height: 120px; background: #fffdf8; }
.team-list strong { font-size: clamp(16px, 2vw, 24px); line-height: 1.15; }
.team-initials { width: fit-content; border-radius: 9px; padding: 5px 9px; background: #f2d9c9; color: #773a33; font-weight: 900; font-size: 13px; }
.team-list li:nth-child(2) .team-initials { background: #dde8da; color: var(--green); }

.estimate-section { background: #213c3b; color: #fff9ef; }
.estimate-section .section-head p { color: #dfefe7; }
.estimate-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; border: 1px solid #fff4; }
.estimate-controls, .estimate-total { padding: clamp(21px, 3.8vw, 46px); }
.estimate-controls { background: #fff9ef; color: var(--ink); }
.estimate-controls :focus-visible { outline-color: var(--red); }
.estimate-controls fieldset { padding: 0; border: 0; margin: 0 0 22px; min-width: 0; }
.estimate-controls legend, .duration-head label { font-weight: 900; margin-bottom: 8px; }
.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-options label { position: relative; cursor: pointer; }
.plan-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-options span { display: grid; place-items: center; min-height: 43px; padding: 4px; border: 1px solid #dac7b9; border-radius: 9px; font-weight: 800; text-align: center; }
.plan-options input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.plan-options input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.duration-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.duration-head output { font-weight: 900; color: var(--red); }
.duration-range { width: 100%; accent-color: var(--brick); margin: 0; }
.range-limits { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.hero-count { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin-bottom: 14px; }
.hero-count label { font-weight: 900; }
.hero-count input { width: 75px; padding: 5px 7px; color: var(--ink); background: white; border: 1px solid #dac7b9; border-radius: 8px; }
.hero-count p { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.option { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; }
.option input { margin: 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--green); }
.option small { margin-left: auto; white-space: nowrap; color: var(--muted); }
.estimate-total { display: flex; flex-direction: column; justify-content: center; background: #284747; }
.estimate-total > p:first-child { color: #e2f0e9; font-weight: 800; }
.estimate-total output { color: var(--gold); font-size: clamp(42px, 6vw, 79px); font-weight: 900; line-height: 1.12; letter-spacing: -.055em; margin-block: 8px 11px; }
.estimate-detail { display: grid; gap: 3px; margin: 0; color: #e8f0e9; font-size: 14px; }
.estimate-detail div { display: flex; justify-content: space-between; gap: 10px; }
.estimate-detail dd { margin: 0; text-align: right; white-space: nowrap; }
.estimate-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.estimate-actions .button-primary { background: #ffd2a2; color: #582c22; }
.estimate-actions .button-primary:hover { background: #ffe3c7; }
.estimate-total noscript p { margin-top: 10px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 27px; }
.faq-layout details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq-layout details:first-child { border-top: 1px solid var(--line); }
.faq-layout summary { font-size: 17px; padding-block: 5px; }
.faq-layout details p { color: var(--muted); padding-block: 4px; }

.contact-section { background: #f8e9dc; border-block: 1px solid #e8d7ca; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: stretch; gap: 16px; }
.contact-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(23px, 4vw, 48px); border-radius: var(--radius); color: #fff8ed; background: radial-gradient(ellipse at top right,#9e4a38,#65322c 70%); }
.contact-intro h2 { font-size: clamp(32px, 4.4vw, 59px); }
.contact-intro p { color: #ffe9d8; margin-top: 16px; max-width: 34ch; }
.contact-form { position: relative; background: #fffdf8; padding: clamp(20px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.contact-fields .wide { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 14px; font-weight: 900; margin-bottom: 5px; }
.contact-form input:not([type=hidden]), .contact-form textarea { width: 100%; min-height: 45px; border: 1px solid #cfbdb0; border-radius: 10px; padding: 9px 10px; color: var(--ink); background: #fffaf3; }
.contact-form textarea { display: block; resize: vertical; min-height: 110px; }
.contact-trap { position: absolute; top: 0; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { margin-top: 16px; }
.contact-status:not(:empty) { margin-top: 9px; font-size: 14px; font-weight: 800; }
.contact-status[data-state="success"] { color: #286042; }
.contact-status[data-state="error"] { color: var(--red); }
.site-footer { background: #fff9ef; color: #624f46; padding-block: 25px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 11px 27px; justify-content: space-between; align-items: center; }
.footer-row strong { color: var(--green); font-weight: 900; margin-right: 6px; }
.footer-row a { font-weight: 800; }
.content-page { max-width: 780px; min-height: 55vh; }
.content-page h1 { font-size: clamp(32px, 5vw, 60px); }
.content-page article { margin-bottom: 24px; }
.content-page article :is(h1, h2, h3, p) { margin-block: 0 15px; }

@media (max-width: 1000px) {
	.wrap { width: calc(100% - 54px); }
	.header-row { gap: 14px; }
	.site-nav { gap: 14px; }
	.hero h1 { font-size: clamp(48px, 7vw, 74px); }
	.hero-art::after { background: linear-gradient(90deg,#251a16e8 0%,#251a16aa 40%,#251a1610 68%), linear-gradient(0deg,#251a1680,transparent 30%); }
	.project-copy, .review-card, .price-card { padding: 17px; }
}
@media (max-width: 790px) {
	.wrap { width: calc(100% - 36px); }
	.header-row { min-height: 66px; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
	.header-cta { margin-left: auto; min-height: 39px; font-size: 12px; padding-inline: 10px; }
	.menu-toggle:not([hidden]) { display: block; order: 3; }
	.site-nav { order: 4; justify-content: start; gap: 8px 16px; flex-wrap: wrap; width: 100%; }
	.site-nav[data-collapsible="true"]:not([data-open="true"]) { display: none; }
	.hero-inner { min-height: 0; padding: 47px 0 min(66vw, 408px); display: block; }
	.hero-copy { width: 100%; max-width: 580px; }
	.hero h1 { font-size: clamp(41px, 8.7vw, 69px); }
	.hero-art { inset: auto 0 0; height: min(68vw, 430px); }
	.hero-art img { object-position: right 41%; }
	.hero-art::after { background: linear-gradient(180deg,#251a14 0%,#251a149e 10%,transparent 34%), linear-gradient(0deg,#251a1687,transparent 34%); }
	.hero-caption { bottom: 14px; padding: 7px 10px; }
	.section-head { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 23px; }
	.school-feature { grid-template-columns: minmax(0, 1fr); }
	.school-media { min-height: 0; aspect-ratio: 16 / 9; }
	.school-copy { padding: 24px; }
	.project-grid, .review-grid, .price-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.project-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); }
	.project-cover { height: 100%; aspect-ratio: auto; }
	.process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.team-layout, .contact-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
	.wrap { width: calc(100% - 30px); }
	.hero-inner { padding-top: 32px; padding-bottom: max(76vw, 268px); }
	.hero-art { height: max(80vw, 294px); }
	.hero h1 { font-size: clamp(39px, 10.9vw, 56px); }
	.hero-intro { margin-top: 15px; max-width: 33ch; }
	.hero-actions { gap: 7px; margin-top: 16px; }
	.hero-actions .button { font-size: 12px; padding-inline: 11px; min-height: 42px; }
	.hero-caption strong { font-size: 12px; }
	.hero-caption > span { font-size: 10px; }
	.project-card, .estimate-panel, .storyboard-grid, .contact-fields { grid-template-columns: minmax(0, 1fr); }
	.project-cover { height: auto; aspect-ratio: 1.6; }
	.team-list { gap: 8px; }
	.team-list li { padding: 13px; }
	.storyboard summary span { display: block; margin-left: 0; }
}
@media (max-width: 375px) {
	.studio-logo img, .custom-logo { width: 110px; }
	.header-cta { padding-inline: 8px; }
	.header-cta span { display: none; }
	.menu-toggle { font-size: 13px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
