/*
 * Medību Tornis - reusable blocks and page sections.
 */

/* ---- Section header ----------------------------------------------------- */

.section-header {
    max-width: 900px;
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
}

.section-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

.section-header__title::before,
.section-header__title::after {
    content: "";
    flex: 0 1 110px;
    height: 1.5px;
    background: var(--gold-500);
}

.section-header__intro {
    margin: 0.6rem auto 0;
    max-width: 46em;
    color: var(--ink-soft);
}

.section-header--light .section-header__intro {
    color: var(--on-dark-soft);
}

.split-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}

.split-header__title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 600;
}

.split-header__title::after {
    content: "";
    width: 60px;
    height: 1.5px;
    background: var(--gold-500);
}

.split-header__note {
    margin: 0;
    color: var(--on-dark-soft);
}

/* ---- Product cards ------------------------------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}

.product-grid--related {
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(60, 40, 10, 0.08), 0 14px 30px rgba(60, 40, 10, 0.14);
}

.product-card__media {
    display: block;
    aspect-ratio: 16 / 7;
    background: var(--cream-300);
    overflow: hidden;
}

.product-card__media picture,
.product-card__image {
    width: 100%;
    height: 100%;
}

.product-card__image {
    object-fit: cover;
    transition: transform 400ms ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.4rem 1.25rem;
}

.product-card__title {
    font-size: 1.4rem;
}

.product-card__title a {
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--brown-700);
}

.product-card__text {
    flex: 1;
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.45;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.product-card__price {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
}

.product-card__price span {
    font-size: 1.05rem;
    font-weight: 700;
}

.product-card__more {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
    color: var(--ink);
    transition: transform var(--transition);
}

.product-card__more:hover {
    transform: translateX(3px);
}

.product-card__more .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ---- Feature cards ------------------------------------------------------ */

.feature-grid {
    display: grid;
    gap: clamp(0.75rem, 1.4vw, 1.1rem);
}

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

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

.feature-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.feature-card--large {
    align-items: flex-start;
    padding: 1.4rem 1.5rem;
}

.feature-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-200), var(--gold-500));
    color: var(--ink);
}

.feature-card__icon .icon {
    width: 1.85rem;
    height: 1.85rem;
    stroke-width: 2;
}

.feature-card__title {
    font-size: 1.0625rem;
    line-height: 1.25;
}

.feature-card--large .feature-card__title {
    font-size: 1.3rem;
}

.feature-card__text {
    margin: 0.25rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-card--large .feature-card__text {
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* Five cards in a row leave little room: tighter spacing and slightly smaller type. */
.feature-grid--five .feature-card {
    gap: 0.8rem;
    padding: 0.9rem;
}

.feature-grid--five .feature-card__icon {
    width: 52px;
    height: 52px;
}

.feature-grid--five .feature-card__title {
    font-size: 1rem;
}

.feature-grid--five .feature-card__text {
    font-size: 0.9rem;
}

.feature-grid--dark .feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-dark);
    box-shadow: none;
}

.feature-grid--dark .feature-card__title {
    color: var(--on-dark);
}

.feature-grid--dark .feature-card__text {
    color: var(--on-dark-soft);
}

/* ---- Process band ------------------------------------------------------- */

.process__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 3rem);
    counter-reset: step;
}

.process__step {
    position: relative;
    text-align: center;
}

/* A thin arrow from the previous step, centred in the gap between the two icon rings. */
.process__step + .process__step::before,
.process__step + .process__step::after {
    content: "";
    position: absolute;
    top: 35px;
    left: calc(-0.5 * clamp(1rem, 3vw, 3rem));
}

.process__step + .process__step::before {
    width: 70px;
    height: 1.5px;
    background: var(--gold-400);
    transform: translate(-50%, -50%);
}

.process__step + .process__step::after {
    width: 9px;
    height: 9px;
    border-top: 1.5px solid var(--gold-400);
    border-right: 1.5px solid var(--gold-400);
    transform: translate(26px, -50%) rotate(45deg);
}

.process__icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 0.9rem;
    border: 1.5px solid var(--gold-300);
    border-radius: 50%;
    color: var(--on-dark);
}

.process__icon .icon {
    width: 2.2rem;
    height: 2.2rem;
}

.process__title {
    font-size: 1.3rem;
    font-weight: 600;
}

.process__number {
    color: var(--gold-300);
}

.process__text {
    max-width: 17em;
    margin: 0.4rem auto 0;
    color: var(--on-dark-soft);
    font-size: 1rem;
    line-height: 1.4;
}

/* ---- Home: other construction work band --------------------------------- */

.works-band {
    background:
        linear-gradient(90deg, rgba(8, 21, 15, 0.96) 0%, rgba(8, 21, 15, 0.86) 100%),
        var(--green-900);
    border-top: 1px solid var(--line-dark);
    color: var(--on-dark);
}

.works-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

.works-band__title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 2.3vw, 2rem);
}

.works-band__text p {
    margin-bottom: 1.1rem;
    color: var(--on-dark-soft);
}

.works-band__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.works-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
}

.works-tile picture,
.works-tile__image {
    width: 100%;
    height: 100%;
}

.works-tile__image {
    object-fit: cover;
    transition: transform 400ms ease;
}

.works-tile:hover .works-tile__image {
    transform: scale(1.06);
}

.works-tile__label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 0.5rem 0.5rem;
    background: linear-gradient(180deg, rgba(6, 16, 11, 0) 0%, rgba(6, 16, 11, 0.92) 70%);
    color: var(--on-dark);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* ---- Call-to-action band ------------------------------------------------ */

.cta-band {
    position: relative;
    isolation: isolate;
    background: var(--green-950);
    border-block: 1px solid var(--line-dark);
    color: var(--on-dark);
    overflow: hidden;
}

.cta-band__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cta-band__media picture,
.cta-band__image {
    width: 100%;
    height: 100%;
}

.cta-band__image {
    object-fit: cover;
    object-position: 60% 40%;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 16, 11, 0.9) 0%, rgba(6, 16, 11, 0.74) 50%, rgba(6, 16, 11, 0.5) 100%);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
    padding-block: clamp(1.75rem, 3.2vw, 2.75rem);
}

.cta-band__text {
    flex: 1 1 28rem;
}

.cta-band__title {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.cta-band__lead {
    margin: 0.5rem 0 0;
    max-width: 38em;
    font-size: 1.1rem;
    line-height: 1.45;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ---- Product page ------------------------------------------------------- */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.45fr);
    gap: clamp(1.25rem, 2.2vw, 2rem);
    align-items: start;
}

.gallery__main {
    position: relative;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery__main picture,
.gallery__image {
    width: 100%;
}

.gallery__image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.gallery__zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(8, 21, 15, 0.7);
    color: var(--gold-200);
}

.gallery__zoom .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.gallery__thumb {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.8;
    transition: opacity var(--transition), border-color var(--transition);
}

.gallery__thumb:hover,
.gallery__thumb.is-active {
    border-color: var(--gold-500);
    opacity: 1;
}

.gallery__thumb-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-detail__heading {
    margin-bottom: 0.5rem;
    font-size: 1.55rem;
}

.product-detail__text p {
    color: var(--ink-soft);
}

.product-detail__text .product-detail__heading:not(:first-child) {
    margin-top: 1.5rem;
}

.product-detail__availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.option-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.9rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: 4px;
}

.option-list li + li {
    margin-top: 0.4rem;
}

.option-list .icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--brown-800);
}

.spec-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    padding: 1.4rem 1.25rem 1.25rem 1.5rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.spec-list {
    margin: 0;
}

.spec-list__row {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    padding-block: 0.55rem;
}

.spec-list__row + .spec-list__row {
    border-top: 1px solid var(--line-light);
}

.spec-list__row .icon {
    grid-row: 1 / 3;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    color: var(--brown-800);
}

.spec-list dt {
    color: var(--ink-soft);
    font-size: 0.975rem;
    line-height: 1.3;
}

.spec-list dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.spec-card__drawing {
    align-self: center;
}

.tower-diagram {
    width: 100%;
    height: auto;
}

.td-ground {
    fill: none;
    stroke: var(--ink-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.td-grass {
    fill: none;
    stroke: #8a8f5c;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-wood {
    fill: #e6c48c;
    stroke: var(--brown-700);
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.td-wood--back {
    fill: #d2ab70;
    opacity: 0.8;
}

.td-wood--dark {
    fill: #c99a58;
}

.td-roof {
    fill: #8b6a3c;
    stroke: var(--brown-800);
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.td-window {
    fill: #f7f1e2;
    stroke: var(--brown-700);
    stroke-width: 1.4;
}

.td-line {
    fill: none;
    stroke: var(--brown-700);
    stroke-width: 1.4;
    stroke-linecap: round;
}

.td-line--plank {
    stroke-width: 0.8;
    opacity: 0.7;
}

.td-line--roof {
    stroke: var(--brown-800);
    stroke-width: 0.8;
    opacity: 0.8;
}

.td-line--ladder {
    stroke-width: 2.2;
}

.td-dim {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.1;
}

.td-dim--guide {
    stroke-dasharray: 3 3;
    opacity: 0.55;
}

.td-arrow {
    fill: var(--ink);
}

.td-text {
    fill: var(--ink);
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
}

.prose {
    color: var(--ink-soft);
}

.prose--columns {
    columns: 2;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
}

.prose--columns p {
    break-inside: avoid;
}

.cost-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: clamp(0.6rem, 1vw, 0.9rem);
}

.cost-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.cost-card--base {
    align-items: center;
    border: 1.5px solid var(--gold-500);
    box-shadow: 0 2px 4px rgba(60, 40, 10, 0.08), 0 10px 24px rgba(168, 122, 56, 0.2);
}

.cost-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-200), var(--gold-500));
    color: var(--ink);
}

.cost-card__icon .icon {
    width: 1.7rem;
    height: 1.7rem;
    stroke-width: 2;
}

.cost-card__label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cost-card--base .cost-card__label {
    font-weight: 700;
}

.cost-card__note {
    margin: 0.1rem 0 0;
    color: var(--ink-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

.cost-card__price {
    margin: 0.3rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.cost-notes {
    max-width: 62em;
    margin: 1.1rem auto 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.cost-notes li + li {
    margin-top: 0.2rem;
}

.cost-notes strong {
    color: var(--ink);
    font-weight: 600;
}

/* ---- About -------------------------------------------------------------- */

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, 1.15fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    align-items: start;
}

.about-intro__image,
.quality__image,
.coverage__image,
.contact-panel__image,
.legal-aside__image,
.journey__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro__media {
    aspect-ratio: 4 / 4.2;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.about-intro__media picture {
    width: 100%;
    height: 100%;
}

.about-intro__tagline {
    color: var(--brown-700);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
}

.about-intro__text p:not(.about-intro__tagline) {
    color: var(--ink-soft);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.value-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem 1rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.value-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--brown-700);
}

.value-card__title {
    font-size: 1.0625rem;
    line-height: 1.25;
}

.value-card__text {
    margin: 0.3rem 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}

.journey__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

.journey__step {
    position: relative;
}

.journey__step + .journey__step::before {
    content: "";
    position: absolute;
    top: 82px;
    left: calc(-1 * clamp(1rem, 2.5vw, 2.25rem) + 4px);
    width: calc(clamp(1rem, 2.5vw, 2.25rem) - 12px);
    height: 1.5px;
    background: var(--gold-400);
}

.journey__media {
    aspect-ratio: 16 / 10;
    border: 1.5px solid var(--gold-400);
    border-radius: 4px;
    overflow: hidden;
}

.journey__media picture {
    width: 100%;
    height: 100%;
}

.journey__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(223, 179, 112, 0.1) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(223, 179, 112, 0.1) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--green-800);
    color: var(--gold-300);
}

.journey__placeholder .icon {
    width: 4rem;
    height: 4rem;
    stroke-width: 1.2;
}

.journey__body {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.journey__number {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold-300);
    border-radius: 50%;
    color: var(--gold-200);
    font-size: 1.15rem;
    font-weight: 600;
}

.journey__title {
    font-size: 1.3rem;
    font-weight: 600;
}

.journey__text {
    margin: 0.3rem 0 0;
    color: var(--on-dark-soft);
    font-size: 0.975rem;
    line-height: 1.45;
}

.quality {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.quality__text p {
    color: var(--ink-soft);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 2rem;
    margin-top: 1.4rem;
}

.badge-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.badge-list__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brown-700);
    color: var(--gold-200);
}

.quality__images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.quality__images picture {
    aspect-ratio: 4 / 4.4;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.tower-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.tower-link {
    display: grid;
    grid-template-columns: 46% minmax(0, 1fr);
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color var(--transition), background-color var(--transition);
}

.tower-link:hover {
    background: rgba(223, 179, 112, 0.08);
    border-color: var(--gold-400);
}

.tower-link picture,
.tower-link__image {
    width: 100%;
    height: 100%;
}

.tower-link__image {
    min-height: 130px;
    object-fit: cover;
}

.tower-link__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
}

.tower-link__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.tower-link__text {
    color: var(--on-dark-soft);
    font-size: 0.95rem;
    line-height: 1.4;
}

.coverage-strip {
    background: var(--cream-100);
    border-block: 1px solid var(--line-light);
}

.coverage-strip__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding-block: 1.5rem;
}

.coverage-strip__lead {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coverage-strip .latvia-map--outline {
    width: 96px;
}

.coverage-strip .latvia-map__land {
    fill: var(--gold-500);
    stroke: var(--brown-700);
    stroke-width: 2;
}

.coverage-strip .latvia-map__pin,
.coverage-strip .latvia-map__pin-dot {
    display: none;
}

.coverage-strip__title {
    max-width: 8em;
    font-size: 1.5rem;
    line-height: 1.15;
}

.coverage-strip__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.975rem;
    line-height: 1.45;
}

.coverage-strip__flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.coverage-strip__flow li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.coverage-strip__flow li + li::before {
    content: "→";
    margin-inline: 0.7rem;
    color: var(--brown-700);
}

.coverage-strip__flow .icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--brown-700);
}

/* ---- Contact ------------------------------------------------------------ */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.contact-info__intro {
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.contact-methods {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.contact-method {
    display: flex;
    gap: 1.25rem;
}

.contact-method__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brown-700);
    color: var(--cream-50);
}

.contact-method__icon .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.contact-method__label {
    font-size: 1rem;
    font-weight: 600;
}

.contact-method__value {
    display: inline-block;
    margin: 0.1rem 0 0.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-method__value--email {
    font-size: 1.3rem;
}

a.contact-method__value:hover {
    color: var(--brown-700);
    text-decoration: underline;
}

.contact-method p:not(.contact-method__value) {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.975rem;
    line-height: 1.45;
}

.contact-panel {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.contact-panel__media {
    aspect-ratio: 2 / 1;
}

.contact-panel__media picture {
    width: 100%;
    height: 100%;
}

.contact-panel__services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--green-850);
    color: var(--on-dark);
}

.contact-panel__services li {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    padding: 1.4rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.contact-panel__services li + li {
    border-left: 1px solid var(--line-dark);
}

.contact-panel__services .icon {
    width: 2rem;
    height: 2rem;
    color: var(--gold-300);
}

.inquiry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
}

.inquiry__text {
    flex: 1 1 28rem;
}

.inquiry__text p {
    max-width: 44em;
    color: var(--ink-soft);
}

.inquiry__product {
    font-weight: 600;
}

.inquiry__product a {
    color: var(--brown-700);
}

.inquiry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.coverage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
}

.coverage__map p {
    max-width: 30em;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

/* The map is the supplied picture assets/images/karte.png (1480 x 1062). The picture also shows
   the heading and the paragraph of this block; on the page those are real text, so the frame
   shows the picture from below them: the region x 310-1440, y 266-975, at the picture's own
   proportions.

   The picture is opaque and carries its own cream background, a few shades lighter than the
   section's. Two things make it sit on the page without a visible box: the frame's edges fade
   out, and the frame is blended with "darken" - wherever the picture is lighter than the page
   behind it, the page shows; the map itself is darker and stays as drawn. */
.coverage__map-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: 0.5rem;
    aspect-ratio: 1130 / 709;
    overflow: hidden;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 3.4%, #000 93.8%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 5.6%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 3.4%, #000 93.8%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 5.6%, #000 93%, transparent 100%);
    mask-composite: intersect;
    mix-blend-mode: darken;
}

/* The whole picture, placed so that the region named above fills the frame. */
.coverage__map-image {
    position: absolute;
    top: calc(-266 / 709 * 100%);
    left: calc(-310 / 1130 * 100%);
    width: calc(1480 / 1130 * 100%);
    max-width: none;
    height: auto;
}

.coverage__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.coverage__grid picture {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
}

.visit-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    background: var(--green-850);
    border-radius: var(--radius);
    color: var(--on-dark-soft);
    font-size: 0.975rem;
    line-height: 1.45;
}

.visit-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gold-300);
}

.visit-card__title {
    margin-bottom: 0.35rem;
    color: var(--on-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---- Legal pages -------------------------------------------------------- */

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.legal__updated {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.legal-section {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2.25rem);
    padding-block: 1.4rem;
}

.legal-section + .legal-section {
    border-top: 1px solid var(--line-light);
}

.legal-section__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1.5px solid var(--gold-600);
    border-radius: 50%;
    color: var(--brown-700);
}

.legal-section__icon .icon {
    width: 1.9rem;
    height: 1.9rem;
}

.legal-section__title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.legal-section__subtitle {
    margin: 1rem 0 0.4rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.legal-section__body p {
    color: var(--ink-soft);
}

.legal-list {
    margin: 0.5rem 0 1em;
    color: var(--ink-soft);
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
}

.legal-list li + li {
    margin-top: 0.3rem;
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0.35rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-600);
}

.legal-list a,
.legal-facts a {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.legal-facts {
    margin: 0.75rem 0 0;
    padding: 0.9rem 1.1rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}

.legal-facts div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}

.legal-facts dt {
    color: var(--ink-soft);
}

.legal-facts dd {
    margin: 0;
    font-weight: 600;
}

.legal-aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.legal-aside__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.legal-aside__media picture {
    width: 100%;
    height: 100%;
}

.legal-aside__lead {
    display: flex;
    gap: 1rem;
    padding: 1.4rem 1.4rem;
    background: var(--green-850);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--on-dark-soft);
    font-size: 0.975rem;
    line-height: 1.5;
}

.legal-aside__lead-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--gold-400);
    border-radius: 50%;
    color: var(--gold-300);
}

.legal-aside__lead-title {
    margin-bottom: 0.4rem;
    color: var(--on-dark);
    font-size: 1.25rem;
}

.legal-aside__cards {
    margin-top: 1rem;
    background: var(--cream-50);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}

.legal-aside__cards li {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.legal-aside__cards li + li {
    border-top: 1px solid var(--line-light);
}

.legal-aside__card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--gold-500);
    border-radius: 50%;
    color: var(--brown-700);
}

.legal-aside__card-title {
    margin-bottom: 0.2rem;
    color: var(--ink);
    font-size: 1.0625rem;
}

.cookie-policy > p {
    color: var(--ink-soft);
}

.cookie-category {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-light);
}

.cookie-category__title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.cookie-category p {
    color: var(--ink-soft);
}

.table-wrap {
    margin-top: 1rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    overflow-x: auto;
}

.cookie-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: var(--cream-50);
    font-size: 0.975rem;
    line-height: 1.4;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.cookie-table thead th {
    background: var(--green-850);
    color: var(--on-dark);
    font-weight: 600;
}

.cookie-table tbody tr + tr {
    border-top: 1px solid var(--line-light);
}

.cookie-table code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---- Works gallery ------------------------------------------------------ */

.works-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.2vw, 1rem);
}

.works-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 7 / 9;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: zoom-in;
}

.works-gallery__item picture,
.works-gallery__image {
    width: 100%;
    height: 100%;
}

.works-gallery__image {
    object-fit: cover;
    transition: transform 400ms ease;
}

.works-gallery__item:hover .works-gallery__image {
    transform: scale(1.05);
}

.works-gallery__zoom {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8, 21, 15, 0.7);
    color: var(--gold-200);
    opacity: 0;
    transition: opacity var(--transition);
}

.works-gallery__item:hover .works-gallery__zoom,
.works-gallery__item:focus-visible .works-gallery__zoom {
    opacity: 1;
}

.works-gallery__zoom .icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* ---- Lightbox ----------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 2.5rem);
    background: rgba(4, 10, 7, 0.94);
    color: var(--on-dark);
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
    margin: 0.9rem 0 0;
    max-width: 48em;
    text-align: center;
}

.lightbox__button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--line-dark);
    border-radius: 50%;
    background: rgba(8, 21, 15, 0.85);
    color: var(--gold-200);
}

.lightbox__button:hover {
    border-color: var(--gold-300);
}

.lightbox__button--close {
    top: 1rem;
    right: 1rem;
}

.lightbox__button--previous {
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.lightbox__button--next {
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

body.has-overlay {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
