:root {
    --bg-dark: #0f1512;
    --bg-deep: #131d18;
    --surface: #ffffff;
    --surface-soft: #f4f7f5;
    --text: #1e2823;
    --text-soft: #4f5d56;
    --line: #d8e1dc;
    --green: #0d6b50;
    --green-2: #14936c;
    --white: #ffffff;
    --shadow: 0 14px 34px rgba(18, 29, 24, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: var(--text);
    background: var(--surface-soft);
    font-size: 16px;
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    padding: 74px 0;
}

.eyebrow {
    font-family: 'Outfit', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-2);
    margin-bottom: 10px;
}

h1,
h2,
h3 {
    font-family: 'Outfit', Arial, sans-serif;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 52px;
    margin-bottom: 14px;
    color: #f4fff9;
}

h2 {
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--text);
}

h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: var(--text);
}

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-head p {
    color: var(--text-soft);
}

.section-subnav {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-subnav a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #cfe0d7;
    background: #edf6f1;
    color: #235646;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
}

.section-subnav a:hover {
    background: #dff1e8;
    border-color: #bed7ca;
}

/* hero */

.hero {
    min-height: 96vh;
    position: relative;
    background:
        linear-gradient(140deg, rgba(7, 12, 9, 0.8), rgba(14, 22, 18, 0.72)),
        var(--hero-image, url('../images/kitchens.jpg')) center/cover no-repeat;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background:
        linear-gradient(112deg, #07120f 0%, #102e24 40%, #1a4a3a 72%, #0d2f24 100%);
    box-shadow: 0 12px 26px rgba(7, 12, 10, 0.46);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav.is-sticky {
    background:
        linear-gradient(112deg, #060f0c 0%, #0f281f 40%, #184032 72%, #0a261d 100%);
    box-shadow: 0 14px 28px rgba(5, 10, 8, 0.54);
}

.hero-nav {
    position: sticky;
    left: auto;
    background:
        linear-gradient(112deg, #07130f 0%, #123528 44%, #1b5843 74%, #104032 100%);
    box-shadow: 0 14px 28px rgba(5, 10, 8, 0.44);
}

.hero-nav.is-sticky {
    background:
        linear-gradient(112deg, #050d0a 0%, #0f2a1f 44%, #174736 74%, #0b3125 100%);
    box-shadow: 0 16px 32px rgba(5, 10, 8, 0.54);
}

.site-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5f4d 0%, #67b496 50%, #2d5f4d 100%);
}

.home-page .hero {
    min-height: calc(100svh - var(--home-nav-height, 82px));
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    width: clamp(96px, 16vw, 124px);
    flex: 0 0 auto;
}

.brand img {
    width: 100%;
    height: auto;
    display: block;
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 18px;
}

.main-nav a {
    color: #dceae2;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #f8fffb;
    border-color: var(--green-2);
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 1202;
    border: 1px solid #4f7565;
    border-radius: 12px;
    background: #11271d;
    color: #f8fffb;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: #174030;
    border-color: #6ca590;
}

.hero-content {
    min-height: 96vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
    padding-top: 108px;
    padding-bottom: 34px;
}

.home-page .hero-content {
    min-height: calc(100svh - var(--home-nav-height, 82px));
    grid-template-columns: 1fr;
    padding-top: 34px;
    justify-items: start;
}

.home-page .hero-copy {
    max-width: 760px;
}

.hero-copy p {
    color: #cbddd3;
    max-width: 620px;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 18px;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green-2);
    color: #083425;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #23b082;
}

.btn-secondary {
    border-color: rgba(220, 234, 226, 0.6);
    color: #edf8f2;
    background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: #eef9f3;
    background: #eef9f3;
    color: #123026;
}

/* about */

.about {
    background: var(--surface);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card i {
    color: var(--green-2);
    font-size: 27px;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-soft);
}

/* gallery */

.gallery {
    background: linear-gradient(180deg, #f2f7f4 0%, #ebf2ee 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d5e0d8;
    box-shadow: var(--shadow);
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.03);
}

.section-link {
    margin-top: 14px;
}

.section-link a {
    color: var(--green);
    font-weight: 600;
    border-bottom: 1px solid rgba(13, 107, 80, 0.4);
}

.section-link .inline-link {
    margin-right: 12px;
    color: var(--green-2);
    font-weight: 700;
    border-bottom-color: rgba(20, 147, 108, 0.65);
}

/* kitchens */

.kitchens {
    background: var(--surface);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.step {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fdfefd;
    padding: 16px;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(20, 147, 108, 0.12);
    color: var(--green);
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-soft);
}

/* services */

.services {
    background: linear-gradient(180deg, #f4f8f6 0%, #edf4f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-card h3,
.service-card ul {
    padding-left: 12px;
    padding-right: 12px;
}

.service-card h3 {
    margin-top: 10px;
}

.service-card ul {
    list-style: none;
    margin: 0 0 12px;
    padding-left: 12px;
    padding-right: 12px;
}

.service-card li {
    list-style: none;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 14px;
}

/* testimonials */

.testimonials {
    background:
        linear-gradient(140deg, rgba(12, 20, 16, 0.9), rgba(14, 24, 19, 0.88)),
        url('images/woodwork-bg.jpg') center/cover no-repeat;
}

.testimonials .section-head h2,
.testimonials .eyebrow,
.testimonials .section-head p {
    color: #eaf8f0;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

blockquote {
    margin: 0;
    border: 1px solid rgba(234, 248, 240, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    color: #d4e8dd;
    line-height: 1.55;
    font-size: 15px;
}

cite {
    display: block;
    margin-top: 10px;
    color: #8fe3be;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 11px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* contact */

.contact {
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 12px;
}

.contact-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.contact-card {
    padding: 18px;
}

.contact-card p {
    color: var(--text-soft);
    margin-bottom: 12px;
}

.contact-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.contact-card i {
    color: var(--green-2);
    margin-right: 8px;
}

.contact-form {
    padding: 18px;
}

.contact-form-plain {
    padding: 0;
    border: 0;
}

.form-hint {
    margin: 6px 0 0;
    color: #688174;
    font-size: 13px;
}

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

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    display: inline-block;
    margin-bottom: 4px;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #d3ddd7;
    border-radius: 10px;
    background: #fbfefc;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--green-2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

#surname,
#website,
.hp-field {
    display: none;
}

.form-message {
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 12px;
    font-size: 14px;
}

.form-message.success {
    background: #dff4ea;
    border: 1px solid #b9decc;
    color: #0f6448;
}

.form-message.error {
    background: #f8e3e3;
    border: 1px solid #ebc7c7;
    color: #942f2f;
}

/* footer */

.site-footer {
    background: var(--bg-dark);
    padding: 24px 0 14px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-nav,
.social-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-nav a {
    color: #9fb7ab;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover,
.social-nav a:hover {
    color: #dff5ea;
}

.social-nav a {
    color: #9fb7ab;
    font-size: 20px;
}

.footer-copy p {
    margin: 0;
    color: #88a296;
    font-size: 13px;
    text-align: center;
}

.footer-credit {
    margin-top: 8px;
    line-height: 1.6;
    min-height: 30px;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 2px;
    color: #cdeee0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover {
    color: #effff7;
}

/* subpages */

.subpage-hero {
    background: linear-gradient(140deg, rgba(10, 16, 13, 0.92), rgba(13, 21, 17, 0.88));
    padding: calc(var(--site-nav-height, 82px) + 30px) 0 48px;
}

.subpage-hero h1 {
    margin: 0 0 8px;
}

.subpage-hero p {
    color: #caded2;
    max-width: 700px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfdad4;
    border-radius: 999px;
    padding: 6px 12px;
    background: #ffffff;
    color: #2f4f43;
    font-size: 13px;
    font-weight: 600;
}

.chip.active {
    background: #14936c;
    border-color: #14936c;
    color: #083425;
}

.page-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
}

.btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
}

.gallery-page {
    background:
        radial-gradient(circle at 18% -10%, rgba(20, 147, 108, 0.16), transparent 48%),
        radial-gradient(circle at 90% 4%, rgba(13, 107, 80, 0.12), transparent 40%),
        #eef3f0;
}

.gallery-page .section {
    padding-top: 56px;
}

.gallery-page .chips {
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-page .chip {
    border-radius: 999px;
    border: 1px solid rgba(31, 63, 52, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: #1f4337;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.gallery-page .chip:hover,
.gallery-page .chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(20, 147, 108, 0.55);
    background: rgba(255, 255, 255, 0.98);
}

.gallery-page .chip.active {
    background: linear-gradient(145deg, #14936c, #0f7a5a);
    border-color: #14936c;
    color: #f2fff9;
    box-shadow: 0 8px 18px rgba(20, 147, 108, 0.28);
}

.gallery-page-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(33, 77, 62, 0.16);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 248, 0.94));
    box-shadow: 0 18px 44px rgba(14, 30, 23, 0.08);
}

.gallery-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 4px 2px 14px;
    border-bottom: 1px solid rgba(132, 164, 151, 0.28);
}

.gallery-count,
.gallery-page-status {
    color: #2e5749;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.gallery-thumb {
    position: relative;
    border: 1px solid rgba(33, 77, 62, 0.2);
    border-radius: 16px;
    background: #f8fcfa;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(16, 33, 26, 0.08);
    text-align: left;
    padding: 0;
    color: inherit;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(20, 147, 108, 0.55);
    box-shadow: 0 18px 30px rgba(15, 34, 27, 0.16);
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(5, 12, 9, 0), rgba(5, 12, 9, 0.42));
    pointer-events: none;
    opacity: 0.85;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.gallery-thumb-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(228, 244, 237, 0.45);
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f0fff8;
    background: rgba(7, 16, 12, 0.58);
    backdrop-filter: blur(3px);
}

.gallery-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.gallery-pager .btn {
    min-width: 140px;
    letter-spacing: 1.15px;
    box-shadow: 0 8px 20px rgba(12, 33, 26, 0.12);
}

.gallery-pager .btn-secondary {
    border-color: rgba(24, 87, 66, 0.26);
    color: #1d4f3f;
    background: rgba(255, 255, 255, 0.88);
}

.gallery-pager .btn-secondary:hover,
.gallery-pager .btn-secondary:focus {
    border-color: rgba(20, 147, 108, 0.45);
    background: #f2fbf7;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 13, 10, 0.9);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1060px, 96vw);
    padding: 52px 60px 30px;
    border-radius: 22px;
    border: 1px solid rgba(193, 228, 211, 0.33);
    background: linear-gradient(165deg, rgba(11, 20, 16, 0.96), rgba(8, 15, 12, 0.95));
    box-shadow: 0 26px 56px rgba(2, 7, 5, 0.55);
}

.gallery-lightbox-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 14px;
    background: #0a120e;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: 1px solid rgba(222, 238, 230, 0.38);
    border-radius: 999px;
    background: rgba(249, 255, 251, 0.14);
    color: #e8f7ef;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.gallery-lightbox-close::before,
.gallery-lightbox-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    margin-top: -1px;
    border-radius: 999px;
    background: currentColor;
}

.gallery-lightbox-close::before {
    transform: rotate(45deg);
}

.gallery-lightbox-close::after {
    transform: rotate(-45deg);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
    transform: translateY(-1px);
    background: rgba(245, 255, 250, 0.26);
    border-color: rgba(222, 238, 230, 0.6);
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
    transform: translateY(-50%) scale(1.03);
    background: rgba(245, 255, 250, 0.26);
    border-color: rgba(222, 238, 230, 0.6);
}

.gallery-lightbox-nav.prev {
    left: 10px;
}

.gallery-lightbox-nav.next {
    right: 10px;
}

.gallery-lightbox-caption {
    margin-top: 10px;
    color: #d8ede3;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
}

body.lightbox-open {
    overflow: hidden;
}

.reviews-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
}

.reviews-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-self: start;
    width: 100%;
    max-width: 760px;
    min-width: 0;
}

.reviews-search-form input[type="text"] {
    flex: 0 1 clamp(260px, 34vw, 520px);
    width: clamp(260px, 34vw, 520px);
    min-width: 0;
}

.reviews-per-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.reviews-per-page-form label {
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1f2b26;
}

.reviews-per-page-form select {
    width: auto;
    min-width: 110px;
    border: 1px solid #9fc8b4;
    border-radius: 12px;
    background-color: #ffffff;
    color: #23493d;
    font-weight: 700;
    padding: 8px 36px 8px 12px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2323493D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 14px 14px;
}

@media only screen and (max-width: 900px) {
    .reviews-controls {
        grid-template-columns: 1fr;
        align-items: end;
        gap: 8px;
    }

    .reviews-search-form {
        flex-wrap: nowrap;
        max-width: none;
    }

    .reviews-search-form input[type="text"] {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .reviews-per-page-form {
        justify-self: end;
    }

    .gallery-lightbox-dialog {
        padding: 44px 34px 26px;
    }

    .gallery-lightbox-close::before,
    .gallery-lightbox-close::after {
        width: 16px;
        margin-left: -8px;
    }

    .home-page .hero-content {
        min-height: calc(100svh - var(--home-nav-height, 82px));
        align-items: end;
        padding-bottom: 24px;
    }
}

@media only screen and (max-width: 640px) {
    .reviews-controls {
        grid-template-columns: 1fr;
        align-items: end;
        gap: 10px;
    }

    .reviews-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        max-width: none;
        width: 100%;
        min-width: 0;
        align-items: center;
    }

    .reviews-search-form input[type="text"] {
        grid-column: 1;
        width: 100%;
    }

    .reviews-search-form .btn-primary {
        grid-column: 2;
        justify-self: end;
        white-space: nowrap;
    }

    .reviews-search-form .btn-secondary {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .reviews-per-page-form {
        grid-column: 1;
        justify-self: end;
        align-self: end;
    }
}

.reviews-list {
    display: grid;
    gap: 10px;
}

.review-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.review-item h3 {
    margin-bottom: 4px;
}

.review-item .meta {
    color: #688174;
    font-size: 13px;
    margin-bottom: 8px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #ced9d3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    color: #2d4a3f;
}

.pagination .active {
    background: #14936c;
    border-color: #14936c;
    color: #083425;
}

.pagination a.page-nav {
    min-width: auto;
    padding: 0 12px;
}
