:root {
    --bg-body: #050814;
    --bg-elevated: rgba(7, 11, 35, 0.8);
    --bg-elevated-alt: rgba(17, 20, 39, 0.85);
    --accent: #4ad7ff;
    --accent-soft: rgba(74, 215, 255, 0.16);
    --accent-strong: #38b6ff;
    --text-main: #f7f7ff;
    --text-muted: #b3b7d4;
    --border-subtle: #262a42;
    --danger: #ff7676;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --container-width: 1120px;
    --transition-fast: 0.18s ease-out;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.6s ease;
}

/* GLOBAL RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #202749 0, #050814 50%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* FOCUS STATES (dostępność) */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

/* REDUCED MOTION – szacunek dla ustawień systemowych */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* SKIP LINK */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--accent-strong);
    color: #020312;
}

/* HEADER / NAV */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: radial-gradient(circle at top left, rgba(74, 215, 255, 0.09), rgba(5, 8, 20, 0.96));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 40% 60% 45% 55%;
    background: radial-gradient(circle at 30% 20%, #ffffff 0, #4ad7ff 35%, #266fd8 100%);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #020312;
    box-shadow: 0 0 20px rgba(74, 215, 255, 0.7);
}

.logo-text {
    font-size: 1.05rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.15rem;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width var(--transition-fast);
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    width: 100%;
}

/* aktywny link w menu – ustawiany przez JS */

.main-nav a.active {
    color: var(--accent-strong);
}

.main-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
    font-size: 1.1rem;
    cursor: pointer;
}

/* MOBILE NAV */

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.mobile-nav-open {
    display: flex;
}

/* HERO */

.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
    overflow: hidden;
    opacity: 1;
    transform: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0, rgba(74, 215, 255, 0.2), transparent 55%),
        radial-gradient(circle at 80% 0, rgba(74, 215, 255, 0.09), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3vw + 1.6rem, 3.3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.lede,
.hero-text p {
    max-width: 34rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.99rem;
}

.hero-location {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
    margin-bottom: 1.2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-badges span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(7, 11, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.hero-badges span:hover {
    background: rgba(7, 11, 35, 0.75);
    color: var(--accent-strong);
}

/* HERO MEDIA + PHOTOS */

.hero-media {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-end;
}

.hero-photo-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, 120px);
    gap: 0.75rem;
    max-width: 360px;
}

.hero-photo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(74, 215, 255, 0.25);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-photo-main {
    grid-row: 1 / span 2;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform var(--transition-medium);
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(74, 215, 255, 0.4);
}

.hero-photo:hover img {
    transform: scale(1.07);
}

/* HERO CARD */

.hero-card {
    background: radial-gradient(circle at top, rgba(74, 215, 255, 0.18), #070a19);
    border-radius: 26px;
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 360px;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(74, 215, 255, 0.4);
}

.hero-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.hero-card-header p {
    margin: 0.1rem 0 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
}

.hero-card-list li + li {
    margin-top: 0.4rem;
}

.price-from {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.price-from span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.hero-card-footer .btn-block {
    width: 100%;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #020312;
    box-shadow: 0 13px 30px rgba(56, 182, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 17px 40px rgba(56, 182, 255, 0.6), 0 0 15px rgba(74, 215, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* SECTIONS */

.section {
    padding: 4rem 0;
    opacity: 1;
    transform: none;
}

.section-alt {
    background: radial-gradient(circle at top, rgba(74, 215, 255, 0.03), #050814);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    max-width: 34rem;
    margin: 0.25rem auto 0;
    color: var(--text-muted);
}

/* GRID HELPERS */

.grid {
    display: grid;
    gap: 1.6rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CARDS */

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    border-color: rgba(74, 215, 255, 0.45);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.service-card ul li {
    position: relative;
    padding-left: 1.1rem;
}

.service-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* TIMELINE */

.timeline {
    display: grid;
    gap: 1.3rem;
    max-width: 720px;
    margin: 0 auto;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: flex-start;
}

.timeline-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(5, 8, 20, 0.8);
}

.timeline-content h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PORTFOLIO */

.portfolio-grid {
    align-items: stretch;
}

.portfolio-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
    border-color: rgba(74, 215, 255, 0.45);
}

.portfolio-thumb {
    height: 180px;
    border-radius: var(--radius-md);
    margin-bottom: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(74, 215, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: #050814;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.06);
}

.portfolio-item h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
}

.portfolio-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SERVICE AREA */

.area-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.area-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.area-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.area-list li {
    position: relative;
    padding-left: 1.2rem;
}

.area-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
}

.area-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.9;
}

.area-map-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.area-map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
    border-color: rgba(74, 215, 255, 0.45);
}

.area-map-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.area-map {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(74, 215, 255, 0.3);
    background: #050814;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    padding-top: 68%;
}

.area-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.area-map-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* ABOUT */

.about-grid {
    display: grid;
    gap: 2.2rem;
    align-items: center;
}

.about-grid p {
    color: var(--text-muted);
}

.about-highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 0.9rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(74, 215, 255, 0.45);
}

.highlight-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.highlight-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-details {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-details a {
    color: var(--accent-strong);
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.contact-form {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    border-color: rgba(74, 215, 255, 0.35);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.form-row label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    background: #050814;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out;
    font-family: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(74, 215, 255, 0.3);
    background: rgba(5, 8, 20, 0.95);
}

.form-row textarea {
    resize: vertical;
}

.form-status {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1.1em;
}

.form-status.error {
    color: var(--danger);
}

.form-status.success {
    color: var(--accent-strong);
}

/* FOOTER */

.site-footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 8, 20, 0.98);
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-small {
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

/* THANK YOU PAGE */

.thank-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.thank-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-elevated);
    border-radius: 22px;
    padding: 2.2rem 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.thank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    border-color: rgba(74, 215, 255, 0.45);
}

.thank-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 20%, #ffffff, var(--accent-strong));
    color: #020312;
    font-size: 1.9rem;
    box-shadow: 0 10px 30px rgba(56, 182, 255, 0.5);
}

.thank-card h1 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
}

.thank-card p {
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ANIMACJA „SCROLL-IN” SEKCJI – klasy dodawane przez JS */

.hero.animate-on-scroll,
.section.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.hero.animate-on-scroll.is-visible,
.section.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Przy prefers-reduced-motion: sekcje po prostu są widoczne */

@media (prefers-reduced-motion: reduce) {
    .hero.animate-on-scroll,
    .section.animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        align-items: flex-start;
    }

    .hero-card {
        justify-self: stretch;
        max-width: none;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .area-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding-inline: 1rem;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portfolio-thumb {
        height: 160px;
    }

    .hero-photo-grid {
        max-width: 100%;
        grid-template-columns: 1.3fr 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .about-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-photo-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .hero-photo-main {
        grid-row: auto;
    }
}
