:root {
    --navy: #07162f;
    --navy-soft: #0d2352;
    --blue: #174ea6;
    --red: #d62828;
    --red-dark: #ad1f1f;
    --cream: #fff8ef;
    --page: #edf5ff;
    --white: #ffffff;
    --ink: #0a1a3a;
    --muted: #51607f;
    --line: #dbe4f2;
    --soft-card: #f8fbff;
    --shadow: 0 18px 45px rgba(7, 22, 47, 0.12);
    --shadow-soft: 0 10px 28px rgba(7, 22, 47, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 100;
    background: var(--white);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    left: 12px;
}

.page-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 76px 22px;
}

.narrow-content {
    max-width: 1020px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 22, 47, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(7, 22, 47, 0.18);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 6px 10px;
    background: var(--red);
    border-radius: 999px;
    color: var(--white);
    font-size: 15px;
    letter-spacing: 0.04em;
}

.logo-text {
    font-size: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.nav-links .nav-cta {
    background: var(--red);
    color: var(--white);
    padding-inline: 18px;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
    background: var(--red-dark);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section-label,
.eyebrow,
.card-tag,
.subject-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--red);
}

.light-label {
    color: #ffffff;
}

.section-intro {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-intro h2 {
    font-size: clamp(31px, 4vw, 44px);
    margin-bottom: 14px;
}

.section-intro p:last-child {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.dark-text p:last-child {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(214, 40, 40, 0.28);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(7, 22, 47, 0.16);
}

.btn-secondary:hover {
    background: var(--navy-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.full-width-btn {
    width: 100%;
    margin-top: auto;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    min-height: 82vh;
    overflow: hidden;
    background: var(--navy);
}

.slides,
.g30-slide {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
}

.slides img,
.g30-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay,
.g30-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hero-overlay {
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 78% 20%, rgba(214, 40, 40, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(3, 10, 25, 0.86) 0%, rgba(7, 22, 47, 0.72) 48%, rgba(7, 22, 47, 0.36) 100%);
    padding: 70px max(22px, calc((100vw - var(--max-width)) / 2 + 22px));
}

.hero-content {
    max-width: 690px;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(42px, 6vw, 72px);
    margin-bottom: 18px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.hero-lead,
.hero-content p {
    max-width: 630px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 19px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 620px;
}

.hero-trust-row div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.hero-trust-row strong {
    display: block;
    color: var(--white);
    font-size: 25px;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-trust-row span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trust-strip-item {
    padding: 18px 20px;
    background: var(--soft-card);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.trust-strip-label {
    display: block;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.trust-strip-item strong {
    color: var(--ink);
}

.why {
    background:
        radial-gradient(circle at 15% 10%, rgba(214, 40, 40, 0.18), transparent 28%),
        linear-gradient(135deg, var(--navy) 0%, #102a5e 100%);
    color: var(--white);
    padding: 88px 22px;
}

.why h2 {
    color: var(--white);
}

.why-container,
.subjects-list,
.price-boxes,
.steps-grid,
.trust-grid {
    display: grid;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.why-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-item,
.subject-card,
.price-card,
.step-card,
.info-panel,
.contact-form,
.tutor-profile-card,
.contact-side-card,
.contact-main-card,
.page-hero-card {
    background: var(--white);
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.why-item {
    position: relative;
    min-height: 292px;
    padding: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.why-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 22, 47, 0.12) 0%, rgba(7, 22, 47, 0.82) 100%);
    z-index: 0;
}

.why-item::after {
    content: "";
    position: absolute;
    inset: auto 22px 22px 22px;
    height: 3px;
    background: var(--red);
    border-radius: 99px;
    z-index: 1;
}

.why-item h3,
.why-item p {
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

.why-item h3 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 25px;
}

.why-item p {
    padding-bottom: 14px;
    color: rgba(255, 255, 255, 0.94);
}

.why-university {
    background-image: url("images/why-university.jpg");
}

.why-support {
    background-image: url("images/why-stem-support.jpg");
}

.why-online {
    background-image: url("images/why-online-lessons.jpg");
}

.why-pricing {
    background-image: url("images/why-fair-pricing.jpg");
}

.subjects-preview-section,
.feature-section,
.steps-section,
.faq-section {
    background: var(--page);
}

.subjects-preview-section .page-content {
    padding-bottom: 52px;
}

.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subject-card,
.price-card,
.step-card,
.info-panel,
.contact-side-card,
.contact-main-card {
    padding: 28px;
}

.subject-card,
.price-card,
.step-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.subject-card {
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--red);
}

.subject-card h2,
.subject-card h3,
.price-card h2,
.price-card h3,
.step-card h3 {
    margin-bottom: 12px;
    font-size: 25px;
}

.subject-card p,
.price-card p,
.step-card p,
.info-panel p,
.profile-text,
.profile-about p {
    color: var(--muted);
}

.subject-label {
    margin-bottom: 10px;
}

.subject-maths::before {
    background: #174ea6;
}

.subject-biology::before {
    background: #137333;
}

.subject-chemistry::before {
    background: #b06000;
}

.subject-physics::before {
    background: #7b1fa2;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.steps-section .page-content {
    padding-top: 54px;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 18px;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
}

.feature-section .page-content {
    padding-top: 50px;
}

.featured-tutor {
    display: flex;
    justify-content: center;
}

.real-tutors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
}

.tutor-profile-card {
    width: 100%;
    padding: 28px;
}

.tutor-profile-split {
    display: grid;
    grid-template-columns: 285px 1fr;
    gap: 28px;
    align-items: stretch;
}

.featured-profile-card {
    max-width: 1000px;
}

.profile-photo-wrap {
    display: flex;
}

.profile-photo-box {
    position: relative;
    width: 100%;
    min-height: 335px;
    border-radius: 20px;
    overflow: hidden;
    background: #e9eef8;
    border: 1px solid var(--line);
}

.profile-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #5c6889;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(180deg, #eef3fb 0%, #e3eaf7 100%);
}

.profile-photo-box.no-image .profile-photo-placeholder {
    display: flex;
}

.profile-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-badge {
    align-self: flex-start;
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    background: #eef4ff;
    color: var(--blue);
    border: 1px solid #d7e5ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tutor-profile-card h2,
.tutor-profile-card h3 {
    font-size: 36px;
    margin-bottom: 8px;
}

.profile-role {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 22px;
}

.profile-meta {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.meta-item {
    padding: 16px;
    background: var(--soft-card);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.meta-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6a7697;
    margin-bottom: 6px;
}

.meta-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.profile-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #f4f7fc;
    border: 1px solid #d9e1ee;
    border-radius: 999px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.profile-text {
    font-size: 17px;
    margin-bottom: 24px;
}

.profile-about h3,
.profile-about h4 {
    margin: 0 0 10px;
    font-size: 21px;
    color: var(--ink);
}

.g30-slideshow {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--navy);
}

.g30-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(214, 40, 40, 0.20), transparent 30%),
        rgba(0, 0, 0, 0.55);
    padding: 44px 22px;
}

.overlay-content {
    max-width: 790px;
}

.g30-overlay h2 {
    color: var(--white);
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 14px;
}

.g30-overlay p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.cta-section {
    padding: 0;
    background: var(--page);
}

.cta-content {
    text-align: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(214, 40, 40, 0.13), transparent 32%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 52px 28px;
}

.cta-content h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 12px;
}

.cta-content p {
    max-width: 660px;
    margin: 0 auto 26px;
    color: var(--muted);
    font-size: 17px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.slim-cta .page-content {
    padding-top: 0;
}

.page-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(214, 40, 40, 0.26), transparent 28%),
        linear-gradient(135deg, var(--navy) 0%, #132f68 100%);
    color: var(--white);
}

.compact-page-hero .page-content {
    padding-top: 68px;
    padding-bottom: 68px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 32px;
    align-items: center;
}

.page-header {
    color: inherit;
    font-size: clamp(38px, 5vw, 58px);
    margin-bottom: 16px;
}

.page-subtext {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.light-subtext {
    color: rgba(255, 255, 255, 0.90);
}

.page-hero-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--white);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.page-hero-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.page-hero-card span {
    color: rgba(255, 255, 255, 0.88);
}

.detailed-subjects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detailed-subjects .subject-card {
    min-height: 335px;
}

.card-list,
.simple-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.card-list li + li,
.simple-list li + li {
    margin-top: 10px;
}

.split-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-panel {
    margin-top: 36px;
}

.info-panel h2 {
    margin-bottom: 10px;
    font-size: 28px;
}

.no-margin {
    margin-top: 0;
}

.accent-panel {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.accent-panel h2 {
    color: var(--white);
}

.accent-panel p,
.accent-panel .simple-list {
    color: rgba(255, 255, 255, 0.88);
}

.price-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.price-card {
    gap: 0;
}

.price-card h2 {
    min-height: 58px;
}

.price {
    font-size: 48px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.price-note {
    min-height: 78px;
}

.featured-card,
.best-value-card {
    border: 2px solid var(--red);
}

.best-value-card {
    position: relative;
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.price-info-grid {
    align-items: stretch;
}

.price-faq .page-content {
    padding-top: 10px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 800;
    color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--red);
    font-size: 24px;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    padding: 0 22px 20px;
    color: var(--muted);
}

.tutor-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.tutor-trust-grid .info-panel {
    margin-top: 0;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.contact-side-card {
    position: sticky;
    top: 100px;
}

.contact-main-card {
    padding: 0;
    overflow: hidden;
}

.form-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px;
    background: var(--soft-card);
    border-bottom: 1px solid var(--line);
}

.form-tabs button {
    flex: 1;
    min-width: 190px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-tabs button:hover,
.form-tabs button.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.contact-form {
    margin: 0;
    padding: 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-panel[hidden] {
    display: none;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row {
    margin-bottom: 26px;
}

.form-grid {
    margin-bottom: 26px;
}

.form-grid .form-row {
    margin-bottom: 0;
}

.message-row {
    margin-top: 2px;
}

.form-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--ink);
}

.optional-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ccd7e8;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--ink);
}

.contact-form input,
.contact-form select {
    min-height: 58px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 210px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 78, 166, 0.13);
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-submit {
    width: 100%;
    margin-top: 4px;
}

.contact-bottom-section {
    padding-top: 0;
}

.prices-simple-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
}

.main-price-card,
.trial-card,
.focus-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}

.main-price-card {
    display: flex;
    flex-direction: column;
}

.main-price-card h2,
.trial-card h2,
.focus-card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.main-price {
    font-size: 72px;
    line-height: 1;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.06em;
    margin: 8px 0 14px;
}

.price-side-panels {
    display: grid;
    gap: 24px;
}

.trial-card {
    background:
        radial-gradient(circle at 10% 10%, rgba(214, 40, 40, 0.12), transparent 34%),
        var(--white);
    border: 2px solid var(--red);
}

.focus-card {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.focus-card h2 {
    color: var(--white);
}

.focus-card p {
    color: rgba(255, 255, 255, 0.88);
}

.price-info-section {
    padding-top: 0;
}

.site-footer {
    margin-top: auto;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.88);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner p + p {
    color: rgba(255, 255, 255, 0.70);
}

@media (max-width: 1080px) {
    .why-container,
    .four-col,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-boxes,
    .tutor-trust-grid {
        grid-template-columns: 1fr;
    }

    .best-value-card {
        transform: none;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: rgba(7, 22, 47, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        justify-content: flex-start;
        padding-inline: 16px;
    }

    .hero-overlay {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(7, 22, 47, 0.28) 0%, rgba(7, 22, 47, 0.88) 100%);
        padding-top: 110px;
        padding-bottom: 48px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 9vw, 58px);
    }

    .hero-trust-row,
    .trust-strip-inner,
    .page-hero-grid,
    .detailed-subjects,
    .split-panel,
    .contact-page-layout,
    .prices-simple-layout {
        grid-template-columns: 1fr;
    }

    .contact-side-card {
        position: static;
    }

    .tutor-profile-split {
        grid-template-columns: 1fr;
    }

    .profile-photo-box {
        min-height: 300px;
    }

    .page-content {
        padding: 62px 18px;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 19px;
    }

    .logo-mark {
        min-width: 56px;
        min-height: 32px;
        font-size: 13px;
    }

    .hero-slideshow {
        min-height: 930px;
    }

    .hero-overlay {
        align-items: flex-start;
        padding: 44px 18px 44px;
        background:
            linear-gradient(180deg, rgba(7, 22, 47, 0.52) 0%, rgba(7, 22, 47, 0.92) 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(36px, 10vw, 46px);
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero-lead,
    .hero-content p,
    .page-subtext,
    .section-intro p:last-child,
    .g30-overlay p {
        font-size: 16px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-trust-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .hero-trust-row div {
        padding: 18px;
        border-radius: 18px;
    }

    .hero-trust-row strong {
        font-size: 34px;
    }

    .hero-trust-row span {
        font-size: 15px;
    }

    .why-container,
    .four-col,
    .steps-grid,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .why {
        padding: 64px 18px;
    }

    .why-item {
        min-height: 255px;
    }

    .subject-card,
    .price-card,
    .step-card,
    .info-panel,
    .contact-side-card,
    .contact-form,
    .tutor-profile-card,
    .main-price-card,
    .trial-card,
    .focus-card {
        padding: 23px;
    }

    .contact-main-card {
        border-radius: 20px;
    }

    .form-tabs {
        padding: 14px;
    }

    .form-tabs button {
        min-width: 100%;
    }

    .profile-meta {
        grid-template-columns: 1fr;
    }

    .profile-photo-box {
        min-height: 250px;
    }

    .tutor-profile-card h2,
    .tutor-profile-card h3 {
        font-size: 30px;
    }

    .main-price {
        font-size: 58px;
    }

    .g30-slideshow {
        min-height: 460px;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .footer-inner p + p {
        margin-top: 7px;
    }
}

@media (max-width: 420px) {
    .hero-slideshow {
        min-height: 960px;
    }

    .hero-overlay {
        padding-top: 38px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

    .hero-actions {
        margin-top: 26px;
    }
}