/* Visual identity of the Saratov driving school */
:root {
  --paper: #f7f9fa;
  --ink: #152e3b;
  --muted: #50636d;
  --line: #d7e1e6;
  --forest: #126987;
  --red: #d71d34;
  --blue: #1981a4;
  --serif: Inter, "Segoe UI", Arial, sans-serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}
.frame { width: min(91%, 1320px); }
.mast { background: white; }
.mast-inner { min-height: 78px; gap: 20px; }
.master-brand { flex: none; }
.master-brand img { width: 156px; height: auto; margin: 0; }
.mast nav { gap: 4px; }
.mast nav a { border-radius: 8px; padding: 10px 15px; color: #435761; font-weight: 600; }
.mast nav a[aria-current=page], .mast nav a:hover { background: #e8f3f6; color: #105d76; }
.header-chat { color: #16576c; background: white; border: 1px solid #aac9d4; font-weight: 650; }
.header-chat:hover, .quiet:hover { background: #e6f2f6; }
.header-chat .ic { color: #19799a; }
#saved-count, .all-link span { background: #d8edf3; color: #115c75; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #1396c0; outline-offset: 3px; }

.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch; min-height: 0; isolation: isolate; overflow: hidden;
  color: #fff; background: linear-gradient(112deg, #102d3a 12%, #143847 45%, #1c5269 78%, #286e87 100%);
  border-radius: 22px; margin-top: 24px;
}
.hero::before {
  content: ""; pointer-events: none; position: absolute; inset: 0 0 0 39%; z-index: -2; opacity: .43;
  background: repeating-linear-gradient(90deg, transparent 0 59px, #bce6f21c 60px),
              repeating-linear-gradient(0deg, transparent 0 59px, #bce6f21c 60px);
  mask-image: linear-gradient(95deg, transparent 0%, #000 45%);
}
.hero::after {
  inset: -5% -5% -5% auto; width: 46%; height: auto; aspect-ratio: auto; z-index: -1;
  background: linear-gradient(123deg, transparent 0 46%, #298db03d 46% 61%, transparent 61% 64%, #cb2b4196 64% 71%, transparent 71% 73%, #77c1d947 73% 75%, transparent 75%);
}
.hero-copy { z-index: 1; width: 100%; padding: clamp(32px,3.8vw,60px) 0 clamp(32px,3.8vw,60px) clamp(30px,4vw,62px); }
.hero-kicker { display: flex; align-items: center; gap: 11px; color: #d8eaf0; text-transform: uppercase; font: 650 .77rem/1.3 var(--sans); letter-spacing: .12em; }
.livery { width: 25px; height: 12px; transform: skewX(-21deg); background: linear-gradient(90deg,#ff4b57 0 43%,transparent 43% 55%,#64c3df 55%); }
.hero h1 { font-weight: 760; font-size: clamp(3.9rem, 5.7vw, 6.15rem); line-height: .96; letter-spacing: -.061em; color: #fff; margin: 21px 0 18px; }
.hero h1 em { font-style: normal; font-weight: inherit; color: #85d8ed; letter-spacing: inherit; }
.hero-copy>p { font-size: 1.04rem; line-height: 1.53; color: #e0ecf0; max-width: 430px; }
.hero-actions { gap: 10px; margin-top: 23px; }
.solid, .quiet, .tr-primary, .tr-action { border-radius: 10px; }
.hero .solid { color: white; border-color: var(--red); background: var(--red); }
.hero .solid:hover { background: #b81429; border-color: #b81429; }
.hero .quiet { border: 1px solid #7998a4; background: #173a48; color: #fff; }
.hero .quiet:hover { background: #265162; }
.hero-scene { position: relative; display: grid; place-items: center; min-width: 0; margin: 0; padding: 28px 4.5% 34px 0; }
.hero-scene img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 10px #06141c66); }
.hero-scene::before {
  content: ""; position: absolute; width: 83%; height: 64%; top: 14%; right: 4%; border-radius: 50%;
  border: 1px solid #a7d8e143; transform: rotate(-15deg);
  box-shadow: 0 0 0 15px #8cd8e911, 0 0 0 16px #91ccd22b, 0 0 0 45px #a5d6e106, 0 0 0 46px #82cbd523;
}
.hero-scene figcaption { position: absolute; bottom: 17px; right: 5%; font: 600 .77rem/1.3 var(--sans); display: flex; align-items: center; gap: 7px; color: #e4f2f6; }
.hero-scene figcaption .ic { width: 14px; height: 14px; }
.hero-scene figcaption span { display: inline-block; height: 11px; width: 1px; background: #93bfcd; }

.explore { margin: 36px 0 26px; }
.studio-heading { align-items: center; margin-bottom: 17px; }
.studio-heading h2, .mood h2, .library h2, .tr-preview-head h2, .about-inner h2 { font-weight: 710; letter-spacing: -.05em; }
.studio-heading h2, .library h2, .tr-preview-head h2 { margin: 0; font-size: clamp(1.75rem,2.4vw,2.45rem); }
.studio-heading h2 em { font-style: normal; color: #166f8c; }
.all-link, .tr-text-link, .tr-back a { color: #146a86; }
.directions { gap: 16px; }
.direction { position: relative; border-radius: 15px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 3px 9px #0e364504; transition: box-shadow .18s, transform .18s; }
.direction:hover { transform: translateY(-3px); box-shadow: 0 7px 20px #173a4615; }
.direction img { aspect-ratio: 2.15; object-fit: cover; background: #d8e8ed; }
.direction-text { padding: 15px 16px 18px; }
.direction-icon { background: white; color: #176f8b; width: 32px; height: 32px; top: 10px; left: 10px; border-radius: 9px; box-shadow: 0 2px 6px #14354324; }
.direction:nth-child(even) .direction-icon { color: #b91e32; }
.direction-icon .ic { width: 18px; height: 18px; }
.direction-text h3 { font: 700 clamp(1.08rem,1.35vw,1.35rem)/1.18 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.direction-text p { font: 400 .9rem/1.42 var(--sans); margin-top: 6px; color: var(--muted); }
.eyebrow, .card-category { color: #146883; }
.mood { background: #eaf3f6; border-color: #cbdfe6; border-radius: 15px; margin-block: 0 25px; }
.mood h2 { font-size: clamp(1.5rem,2vw,2rem); }
.mood-button, .mood-result { color: #364d59; }
.mood-button[aria-pressed=true],.mood-choices a { background: #fff; color: #115a74; border-color: #b5d3df; }
.cards .card { border-radius: 14px; background: #fff; }
.card-img { aspect-ratio: 1.95; }
.card-img img,.modal-art img,.tr-art,.med-intro img { object-fit: cover; }
.card h3 { font-weight: 670; }
.card p { color: var(--muted); }
.save, .duration { color: #155970; background: #fffffff0; }
.save[aria-pressed=true] .ic { fill: #197996; stroke: #197996; }
.filters button, .search-box, .duration-box { background: white; color: var(--ink); border-color: #bdcfd6; }
.filters button:hover { background: #e6f2f6; }
.med-intro { background: #e3f0f4; }
.med-intro h1,.tr-page-head h1,.tr-hero h1,.tc-intro h1 { font-weight: 730; }
.med-intro h1 em { color: #126d89; font-style: normal; }
.tr-card-title, .tr-steps h2, .tr-guide h2 { font-weight: 650; }
.tr-sage,.tr-blue { --tr-tint:#e5f1f5; --tr-accent:#21647d; }
.tr-ochre,.tr-clay { --tr-tint:#f8edef; --tr-accent:#833648; }
.tr-lilac { --tr-tint:#ecedf6; --tr-accent:#515b78; }
.tr-card-copy p,.tr-hero-copy p,.tr-guide p,.tr-step p { color: #415661; }
.tp-session { --tp-ink:#193843; --tp-green:#176882; --tp-wash:#eaf3f6; --tp-line:#c7dce4; }
#chat-view { --tc-ink:#173d50; --tc-text:#294953; --tc-muted:#536872; --tc-line:#ccdde3; }
.tc-suggest-practice { color:#165b73; border-color:#bfdae3; background:#e9f4f6; }
.mood-choices a:hover,.all-link:hover { color:#0e455a; }
#practice-name { font-weight: 700; }
footer.frame { color: var(--muted); }
footer .foot-brand { margin: 0; }
footer .foot-brand img { display: block; height: auto; }
@media (min-width:801px) and (max-width:1060px) {
  .mast-inner { gap: 12px; } .mast nav a { padding-inline: 8px; }
  .master-brand img { width: 132px; }
  .hero-copy { padding-left: 32px; } .hero h1 { font-size: 4.15rem; }
}
@media (max-width:800px) {
  .frame { width: calc(100% - 32px); }
  .master-brand img { width: 126px; }
  .mast-inner { flex-wrap: wrap; justify-content: space-between; gap: 0; padding-top: 10px; }
  .mast nav { order: 3; width: 100%; justify-content: space-between; gap: 0; margin: 6px 0; }
  .mast nav a { padding: 8px 11px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero-copy { padding: 27px 0 30px 25px; }
  .hero h1 { font-size: clamp(2.8rem,6.6vw,4.2rem); }
  .hero-copy>p { font-size: .96rem; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions>a { padding: 11px 12px; font-size: .83rem; }
  .hero-scene { padding-right: 4%; }
  .directions { gap: 12px; }
  .direction-text h3 { font-size: 1.22rem; }
}
@media (max-width:600px) {
  .frame { width: calc(100% - 26px); }
  .master-brand img { width: 122px; height: auto; }
  .mast nav { justify-content: space-between; }
  .mast nav a { padding: 7px 6px; font-size: .8rem; }
  .hero { display: flex; flex-direction: column; border-radius: 17px; margin-top: 14px; }
  .hero::after { inset: auto -7% -3% auto; width: 85%; height: 53%; }
  .hero-copy { padding: 25px 20px 0; }
  .hero-kicker { font-size: .72rem; }
  .hero h1 { font-size: clamp(3.3rem,12.5vw,4.7rem); margin: 16px 0 12px; }
  .hero-copy>p { max-width: 34em; line-height: 1.45; }
  .hero-actions { margin-top: 16px; }
  .hero-scene { padding: 18px 4% 28px; }
  .hero-scene img { width: min(95%,440px); max-height: 230px; object-fit: contain; }
  .hero-scene figcaption { bottom: 9px; right: 14px; font-size: .72rem; }
  .explore { margin: 26px 0 18px; }
  .studio-heading { gap: 8px; margin-bottom: 13px; }
  .studio-heading h2,.library h2 { font-size: clamp(1.45rem,6.1vw,1.95rem); }
  .all-link { white-space: normal; text-align: right; }
  .direction { border-radius: 12px; } .directions { gap: 9px; }
  .direction img { aspect-ratio: 1.72; }
  .direction-icon { top: 7px; left: 7px; width: 28px; height: 28px; }
  .direction-text { padding: 11px 10px 13px; }
  .direction-text h3 { font-size: 1.05rem; } .direction-text p { font-size: .84rem; }
  footer .foot-brand img { width: 105px; }
}
@media(max-width:360px) {
  .mast nav a { padding-inline: 4px; font-size:.75rem; }
  .studio-heading .all-link { max-width: 76px; }
}
