/* ============================================================
   Components — matched to Figma specs
   ============================================================ */

/* ---------------------------------------------------- Icons */
.icon { display: inline-flex; width: 24px; height: 24px; line-height: 0; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------- Buttons (sharp, uppercase) */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-weight: 800; font-size: 20px; line-height: 28px; text-align: center;
	text-transform: uppercase; letter-spacing: .4px;
	padding: 16px 32px; border-radius: 0; border: 0; cursor: pointer; white-space: nowrap;
	transition: background .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.btn--lg { padding: 24px 48px; }
.btn .icon { width: 22px; height: 22px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #eef6fc; color: var(--blue-700); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Icon buttons (header phone / mail) */
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; background: var(--blue); color: #fff;
	transition: background .18s var(--ease);
}
.icon-btn:hover { background: var(--blue-600); color: #fff; }
.icon-btn .icon { width: 24px; height: 24px; }

/* ---------------------------------------------------- Top statements bar */
.topbar { background: var(--slate); }
.topbar__list {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: 8px 48px; padding: 8px 0;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 400; font-size: 20px; line-height: 28px; }
.topbar__item .icon { color: var(--ink); }  /* navy icon, white text (per Figma) */

/* ---------------------------------------------------- Hero */
/* Design: 720px-tall hero; 720px content column (left); large image bleeding top/right. */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; display: flex; align-items: center; min-height: 720px; }
.hero__content { position: relative; z-index: 2; width: 720px; max-width: 100%; padding: 80px 0; }
.hero__title { text-transform: uppercase; color: var(--ink); font-weight: 800; overflow-wrap: break-word; }
.hero__title span { display: block; }
.hero__title span:first-child { font-size: clamp(32px, 6.4vw, 88px); line-height: 1.09; }
.hero__title-accent { font-size: clamp(20px, 2.9vw, 40px); line-height: 1.2; color: var(--ink); }
.hero__text { margin: 32px 0 0; max-width: 688px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.34; color: #000; }
.hero .btn { margin-top: 72px; }
.hero__media {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	z-index: 1; pointer-events: none; height: 112%; display: block;
}
.hero__img { width: auto; height: 100%; max-width: none; display: block; }

/* ---------------------------------------------------- Categories (cards w/ hover) */
.categories { padding: 40px 0; }
.categories .container { width: min(1600px, 100% - var(--gutter)); }
.categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
	position: relative; display: block; aspect-ratio: 382 / 440; overflow: hidden;
	border: 1px solid var(--slate); background: #fff;
}
.cat-card__media { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1 / 1; }
.cat-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card__label {
	/* Content Wrap insets the band 16px L/R (px-16); flush to bottom. */
	position: absolute; left: 16px; right: 16px; bottom: 0; background: var(--slate);
	padding: 32px 24px; transition: padding .35s var(--ease);
}
.cat-card__label span { display: block; color: #fff; font-weight: 800; font-size: 32px; line-height: 40px; text-transform: uppercase; }
.cat-card__desc {
	color: #fff; font-weight: 400; font-size: 20px; line-height: 28px;
	max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
	transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-top .3s var(--ease);
}
.cat-card:hover .cat-card__label, .cat-card:focus-within .cat-card__label { padding: 32px; }
.cat-card:hover .cat-card__desc, .cat-card:focus-within .cat-card__desc { max-height: 220px; opacity: 1; margin-top: 16px; }

/* ---------------------------------------------------- Catalog CTA band (centered) */
.catalog-cta { background: var(--blue); color: #fff; }
.catalog-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 80px 0; }
.catalog-cta__title { color: #fff; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.16; font-weight: 800; text-transform: uppercase; max-width: 1100px; }
.catalog-cta__text p { color: #fff; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.34; max-width: 900px; }
.catalog-cta .btn { margin-top: 32px; }  /* subtitle→button: gap-24 + 32 = 56px (design: content gap-16 + pt-40) */

/* ---------------------------------------------------- About */
.about { padding: 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; }
.about__content { padding: 48px 64px 48px 0; align-self: center; max-width: 664px; }
.about__text { margin: 24px 0 64px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.34; color: #000; }
.about__media { position: relative; min-height: 700px; background: #c6c6c6; }
.about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
@media (min-width: 1024px) {
	.about__media { margin-right: calc((100% - 100vw) / 2 + (100vw - min(var(--container), 100% - var(--gutter))) / -2); }
}

/* ---------------------------------------------------- Logistics */
.logistics { background: var(--tint); padding: 80px 0; }
/* Title node is text-center with pb-40 + gap-32 below (= 72px to the cards). */
.logistics .section-title { text-align: center; margin-bottom: 72px; }
.logistics__grid { display: flex; border: 1px solid var(--slate); }
.logi-card {
	flex: 1 1 0; min-width: 0; background: #fff; padding: 32px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	min-height: 372px; border-left: 1px solid var(--slate);
}
.logi-card:first-child { border-left: 0; }
.logi-card__title { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.logi-card__text { color: var(--ink); font-size: 18px; line-height: 26px; }
.logi-card__icon { width: 80px; height: 80px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logi-card__icon .icon { width: 48px; height: 48px; color: #fff; }

/* ---------------------------------------------------- Contact */
.contact { padding: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.contact__media { position: relative; min-height: 700px; background: #c6c6c6; }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__panel { padding: 48px 0 48px 64px; align-self: center; max-width: 664px; }
.contact__intro { margin: 16px 0 0; color: var(--ink); font-size: 18px; }
@media (min-width: 1024px) {
	.contact__media { margin-left: calc((100% - 100vw) / 2 + (100vw - min(var(--container), 100% - var(--gutter))) / -2); }
}

.contact-form { margin-top: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 16px; }
.field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.field input, .field textarea {
	width: 100%; background: var(--field-bg); border: 1px solid var(--slate); border-radius: 0;
	padding: 16px; font-size: 16px; line-height: 24px; color: #000;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #000; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,158,217,.25); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 16px; line-height: 24px; margin-top: 8px; min-height: 0; }
.field__error:empty { display: none; }

.contact-consent { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.contact-consent input { width: 24px; height: 24px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); border: 1px solid var(--slate); }
.contact-consent label { font-size: 14px; line-height: 22px; color: #000; }
.contact-consent.has-error label { color: var(--error); }
.contact-consent a { text-decoration: underline; }

.contact-form__submit { margin-top: 40px; }
.contact-form__status { margin-top: 16px; font-weight: 700; }
.contact-form__status.is-ok { color: #1f9d55; }
.contact-form__status.is-err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------- Mobile nav */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 0 14px; }
.mobile-nav.is-open { display: block; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__list a {
	display: block; padding: 14px 24px; color: var(--ink); font-weight: 800;
	text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line);
}
.mobile-nav__list a:hover { color: var(--blue); background: #f4f8fc; }

/* ---------------------------------------------------- Responsive */
@media (max-width: 1370px) {
    .hero__img { margin-right: -120px; }
}
@media (max-width: 1245px) {
    .hero__text { max-width: 530px; }
}
@media (max-width: 1100px) {
	.categories__grid { grid-template-columns: repeat(2, 1fr); }
	.logistics__grid { flex-wrap: wrap; border: 0; gap: 16px; }
	.logi-card { flex: 1 1 calc(50% - 8px); border: 1px solid var(--slate); }
}
@media (max-width: 1023px) {
	.hero__inner { flex-direction: column; align-items: stretch; min-height: 0; }
	.hero__content { width: 100%; padding: 24px 0 40px; order: 2; }
	.hero__media { position: static; transform: none; top: auto; right: auto; left: auto; width: 100%; max-width: 440px; height: auto; margin: 0 auto; order: 1; display: block; }
	.hero__img { height: auto; width: 100%; }
	.hero .btn { margin-top: 40px; }
	.about__grid, .contact__grid { grid-template-columns: 1fr; }
	.about__content { padding: 48px 0; }
	.about__media, .contact__media { min-height: 320px; order: -1; margin: 0; }
	.contact__panel { padding: 48px 0; }
}
@media (max-width: 600px) {
	.categories__grid { grid-template-columns: 1fr; }
	.logi-card { flex: 1 1 100%; min-height: 0; justify-content: flex-start; }
	.form-row { grid-template-columns: 1fr; }
	.topbar__list { justify-content: flex-start; gap: 8px 24px; }
	.topbar__item { font-size: 16px; }
	.btn--lg, .btn { width: 100%; }
	.cat-card__label span { font-size: 26px; line-height: 32px; }
	.hero__title span:first-child { font-size: 36px; }
	.hero__title-accent { font-size: 20px; line-height: 1.25; }
	.hero__text { font-size: 17px; }
}
